feat: complex.h added

This commit is contained in:
Mateusz Pusz
2024-11-07 10:58:51 +01:00
parent 8f062bfa87
commit 75b50b8d2c
6 changed files with 51 additions and 12 deletions

View File

@ -23,6 +23,9 @@
#include <mp-units/systems/isq/space_and_time.h>
#include <mp-units/systems/natural.h>
#include <mp-units/systems/si.h>
#if MP_UNITS_HOSTED
#include <mp-units/complex.h>
#endif
#ifdef MP_UNITS_IMPORT_STD
import std;
#else
@ -35,12 +38,6 @@ import std;
#endif
#endif
#if MP_UNITS_HOSTED
template<typename T>
constexpr bool mp_units::is_complex<std::complex<T>> = true;
#endif
namespace {
using namespace mp_units;