Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.
/ cppDegRad Public archive

An example of using C++11's user-defined literals to enforce consistent units of measure. Defines two classes - Radians and Degrees - which implicitly convert between each other, and can be used to prevent mismatching units in 3D graphics APIs.

License

Notifications You must be signed in to change notification settings

grahamboree/cppDegRad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DegRad

Example of using user-defined literals and implicit conversions to enforce units of measure in the C++ type system. Example usage can be found in degrad.cpp and for more information on the rationale and design, see this blogpost.

Released under the MIT license. See LICENSE for more details.

About

An example of using C++11's user-defined literals to enforce consistent units of measure. Defines two classes - Radians and Degrees - which implicitly convert between each other, and can be used to prevent mismatching units in 3D graphics APIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages