refactor: hello_units fixed to provide literals and references preprocessor defines explicitly

This commit is contained in:
Mateusz Pusz committed 2021-04-06 16:36:52 +02:00
1 parent 512406e900
commit 1f80c57fad
4 files changed
+13 -4

No files matched your search

+5
View File
@@ -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>