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

-4
View File
@@ -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
)
+3
View File
@@ -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 <units/format.h>
#include <units/isq/si/international/length.h>
#include <units/isq/si/international/speed.h> // IWYU pragma: keep