From 3382cb4b300fd0dcd9d7413f25172ed58a2c1024 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 26 Jan 2024 16:04:59 +0100 Subject: [PATCH] fix: compilation issues fixed --- src/systems/include/mp-units/systems/hep/hep.h | 6 +++--- test/static/iau_test.cpp | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/systems/include/mp-units/systems/hep/hep.h b/src/systems/include/mp-units/systems/hep/hep.h index ac7a192e8..637fc27fc 100644 --- a/src/systems/include/mp-units/systems/hep/hep.h +++ b/src/systems/include/mp-units/systems/hep/hep.h @@ -22,8 +22,7 @@ #pragma once -#include -#include +#include #include template<> @@ -53,6 +52,8 @@ inline constexpr struct speed_of_light : decltype(si::si2019::speed_of_light_in_ namespace unit_symbols { +using si::unit_symbols::eV; + inline constexpr auto qeV = si::quecto; inline constexpr auto reV = si::ronto; inline constexpr auto yeV = si::yocto; @@ -65,7 +66,6 @@ inline constexpr auto ueV = si::micro; inline constexpr auto meV = si::milli; inline constexpr auto ceV = si::centi; inline constexpr auto deV = si::deci; -inline constexpr auto eV = electronvolt; inline constexpr auto daeV = si::deca; inline constexpr auto heV = si::hecto; inline constexpr auto keV = si::kilo; diff --git a/test/static/iau_test.cpp b/test/static/iau_test.cpp index 547385380..32ccf3c8b 100644 --- a/test/static/iau_test.cpp +++ b/test/static/iau_test.cpp @@ -25,7 +25,8 @@ import mp_units; #else #include #include -#include +#include +#include #endif /* ************** DERIVED DIMENSIONS THAT INCLUDE UNITS WITH SPECIAL NAMES **************** */