feat(example): validated_type now properly registers as a scalar type

This commit is contained in:
Mateusz Pusz
2023-09-04 11:16:25 +02:00
parent b3fb025053
commit 81698f02e5

View File

@@ -25,6 +25,7 @@
#include <gsl/gsl-lite.hpp>
#include <mp-units/bits/external/hacks.h>
#include <mp-units/bits/fmt.h>
#include <mp-units/customization_points.h>
#include <ostream>
#include <utility>
@@ -100,6 +101,9 @@ public:
= default;
};
template<typename T, typename Validator>
inline constexpr bool mp_units::is_scalar<validated_type<T, Validator>> = mp_units::is_scalar<T>;
template<typename CharT, typename Traits, typename T, typename Validator>
std::basic_ostream<CharT, Traits>& operator<<(std::basic_ostream<CharT, Traits>& os,