mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
fix: compilation issues fixed
This commit is contained in:
@@ -22,8 +22,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <mp-units/systems/si/constants.h>
|
#include <mp-units/systems/si/si.h>
|
||||||
#include <mp-units/systems/si/units.h>
|
|
||||||
#include <mp-units/unit.h>
|
#include <mp-units/unit.h>
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
@@ -53,6 +52,8 @@ inline constexpr struct speed_of_light : decltype(si::si2019::speed_of_light_in_
|
|||||||
|
|
||||||
namespace unit_symbols {
|
namespace unit_symbols {
|
||||||
|
|
||||||
|
using si::unit_symbols::eV;
|
||||||
|
|
||||||
inline constexpr auto qeV = si::quecto<electronvolt>;
|
inline constexpr auto qeV = si::quecto<electronvolt>;
|
||||||
inline constexpr auto reV = si::ronto<electronvolt>;
|
inline constexpr auto reV = si::ronto<electronvolt>;
|
||||||
inline constexpr auto yeV = si::yocto<electronvolt>;
|
inline constexpr auto yeV = si::yocto<electronvolt>;
|
||||||
@@ -65,7 +66,6 @@ inline constexpr auto ueV = si::micro<electronvolt>;
|
|||||||
inline constexpr auto meV = si::milli<electronvolt>;
|
inline constexpr auto meV = si::milli<electronvolt>;
|
||||||
inline constexpr auto ceV = si::centi<electronvolt>;
|
inline constexpr auto ceV = si::centi<electronvolt>;
|
||||||
inline constexpr auto deV = si::deci<electronvolt>;
|
inline constexpr auto deV = si::deci<electronvolt>;
|
||||||
inline constexpr auto eV = electronvolt;
|
|
||||||
inline constexpr auto daeV = si::deca<electronvolt>;
|
inline constexpr auto daeV = si::deca<electronvolt>;
|
||||||
inline constexpr auto heV = si::hecto<electronvolt>;
|
inline constexpr auto heV = si::hecto<electronvolt>;
|
||||||
inline constexpr auto keV = si::kilo<electronvolt>;
|
inline constexpr auto keV = si::kilo<electronvolt>;
|
||||||
|
@@ -25,7 +25,8 @@ import mp_units;
|
|||||||
#else
|
#else
|
||||||
#include <mp-units/math.h>
|
#include <mp-units/math.h>
|
||||||
#include <mp-units/systems/iau/iau.h>
|
#include <mp-units/systems/iau/iau.h>
|
||||||
#include <mp-units/systems/si/unit_symbols.h>
|
#include <mp-units/systems/isq/space_and_time.h>
|
||||||
|
#include <mp-units/systems/si/si.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ************** DERIVED DIMENSIONS THAT INCLUDE UNITS WITH SPECIAL NAMES **************** */
|
/* ************** DERIVED DIMENSIONS THAT INCLUDE UNITS WITH SPECIAL NAMES **************** */
|
||||||
|
Reference in New Issue
Block a user