refactor: hello_units fixed to provide literals and references preprocessor defines explicitly
This commit is contained in:
1 parent
512406e900
commit
1f80c57fad
4 files changed
+13
-4
No files matched your search
@@ -3,6 +3,8 @@ Quick Start
|
||||
|
||||
Here is a small example of possible operations::
|
||||
|
||||
#define UNITS_REFERENCES
|
||||
|
||||
#include <units/isq/si/area.h>
|
||||
#include <units/isq/si/frequency.h>
|
||||
#include <units/isq/si/length.h>
|
||||
@@ -40,6 +42,9 @@ but still easy to use interface where all unit conversions and dimensional analy
|
||||
performed without sacrificing on accuracy. Please see the below example for a quick preview
|
||||
of basic library features::
|
||||
|
||||
#define UNITS_REFERENCES
|
||||
#define UNITS_LITERALS
|
||||
|
||||
#include <units/format.h>
|
||||
#include <units/isq/si/length.h>
|
||||
#include <units/isq/si/speed.h>
|
||||
|
||||
Reference in new issue
Block a user