Click here to Skip to main content
15,890,512 members
Articles / Programming Languages / C++11

Units and measures for C++ 11

Rate me:
Please Sign up or sign in to vote.
4.95/5 (22 votes)
24 May 2017CPOL53 min read 45.3K   920   18  
Type quantities according to the units in which they are measured. A complete implementation of units of measurement as a data type for C++ 11.
Presented here is a library providing units of measurement as a data type for C++11 (specifically the compiler provided with Visual Studio Express 2015). It is quite simple to use and is for application anywhere where you are storing, retrieving, comparing or calculating with measured quantities. It is all contained within a single header that references just from the standard library. It is not a library of units. It is a code engine that allows you to define and use whatever units you want.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Retired
Spain Spain
Software Author with engineering, science and mathematical background.

Many years using C++ to develop responsive visualisations of fine grained dynamic information largely in the fields of public transport and supply logistics. Currently interested in what can be done to make the use of C++ cleaner, safer, and more comfortable.

Comments and Discussions