diff --git a/README.md b/README.md index 091a123a..9fb84f29 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ analysis and unit/quantity manipulation. The basic idea and design heavily bases Here is a small example of possible operations: ```cpp +#define UNITS_REFERENCES + #include #include #include @@ -64,6 +66,9 @@ and dimensional analysis can be performed without sacrificing on accuracy. Pleas the below example for a quick preview of basic library features: ```cpp +#define UNITS_REFERENCES +#define UNITS_LITERALS + #include #include #include diff --git a/docs/quick_start.rst b/docs/quick_start.rst index cfb1a0b0..0170a96a 100644 --- a/docs/quick_start.rst +++ b/docs/quick_start.rst @@ -3,6 +3,8 @@ Quick Start Here is a small example of possible operations:: + #define UNITS_REFERENCES + #include #include #include @@ -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 #include #include diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 549fcf25..36ac1959 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -28,7 +28,3 @@ add_subdirectory(references) add_executable(hello_units hello_units.cpp) target_link_libraries(hello_units PRIVATE mp-units::core-fmt mp-units::core-io mp-units::si mp-units::si-international) -target_compile_definitions(hello_units PRIVATE - UNITS_REFERENCES - UNITS_LITERALS -) diff --git a/example/hello_units.cpp b/example/hello_units.cpp index b7513dbd..a72ee6049 100644 --- a/example/hello_units.cpp +++ b/example/hello_units.cpp @@ -20,6 +20,9 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. +#define UNITS_REFERENCES +#define UNITS_LITERALS + #include #include #include // IWYU pragma: keep