Skip to content

valentingalea/cpp-binary-constants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Single class that allows binary constants declaration in C++.
Compile time only: will get evaluated to numeric base-10 integers!

Examples that show it all:
binary(11) = binary(011) = binary(000000000000000011) for 3
binary(1100110) for 102
binary(11111111) for 255
and so on... 

by Valentin Galea
Licensed under the MIT license.

About

Single class that allows binary constants declaration in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages