refactor: UDLs support switched off by default

This commit is contained in:
Mateusz Pusz
2021-04-02 18:56:28 +02:00
parent 5fc7e01d19
commit 1a5b4fc85e
17 changed files with 144 additions and 142 deletions
+2 -1
View File
@@ -43,10 +43,11 @@ inline constexpr std::common_type_t<typename Target::rep, typename Source::rep>
int main()
{
using namespace units::isq::si;
using namespace units::isq::si::references;
std::cout << "conversion factor in mp-units...\n\n";
constexpr length<metre> lengthA = 2.0_q_m;
constexpr length<metre> lengthA = 2.0 * m;
constexpr length<millimetre> lengthB = lengthA;
std::cout << fmt::format("lengthA( {} ) and lengthB( {} )\n", lengthA, lengthB)