From fb7dd1c9185da30aed8645c084be0722e061a867 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Mon, 29 Jul 2024 13:56:30 +0200 Subject: wip --- c++/unit.tmpl.h | 2 +- c++/unit_print.h | 10 +++++----- c++/unit_reduction.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'c++') diff --git a/c++/unit.tmpl.h b/c++/unit.tmpl.h index d89e0c1..5eec43d 100644 --- a/c++/unit.tmpl.h +++ b/c++/unit.tmpl.h @@ -1,6 +1,6 @@ #include -namespace kelun { +namespace kel { template unit...>::unit(const value_type& value_): diff --git a/c++/unit_print.h b/c++/unit_print.h index 0f3cb72..4d9187b 100644 --- a/c++/unit_print.h +++ b/c++/unit_print.h @@ -5,7 +5,7 @@ namespace std { template -inline ostream& operator<<(ostream& o, const kelun::unit_base& ele){ +inline ostream& operator<<(ostream& o, const kel::unit_base& ele){ o<& ele) } } -namespace kelun { +namespace kel { template struct unit_print_impl { static_assert(is_always_false, "Template type not supported"); @@ -41,14 +41,14 @@ struct unit_print_impl,unit_base...> { namespace std { template -inline ostream& operator<<(ostream& o, const kelun::unit& unit); +inline ostream& operator<<(ostream& o, const kel::unit& unit); template -inline ostream& operator<<(ostream& o, const kelun::unit...>& unit){ +inline ostream& operator<<(ostream& o, const kel::unit...>& unit){ o << unit.data(); if constexpr (sizeof...(UnitT) > 0) { auto& o_ret = o << ' '<<'['; - return kelun::unit_print_impl...>::print(o_ret); + return kel::unit_print_impl...>::print(o_ret); } return o; } diff --git a/c++/unit_reduction.h b/c++/unit_reduction.h index d9060d2..df02a4d 100644 --- a/c++/unit_reduction.h +++ b/c++/unit_reduction.h @@ -3,7 +3,7 @@ #include #include -namespace kelun { +namespace kel { template constexpr bool is_always_false = false; -- cgit v1.2.3