SkillAgentSearch skills...

CppDegRad

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.

Install / Use

/learn @grahamboree/CppDegRad
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

Related Skills

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated3y ago
Forks1

Languages

C++

Security Score

75/100

Audited on Jan 28, 2023

No findings