summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-29 13:56:30 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-07-29 13:56:30 +0200
commitfb7dd1c9185da30aed8645c084be0722e061a867 (patch)
tree7f8471a725098f3059d048a4433adc2f75e0ff88
parent23887e1c2d30dc309976ee19742415b9e85315b4 (diff)
wip
-rw-r--r--c++/unit.tmpl.h2
-rw-r--r--c++/unit_print.h10
-rw-r--r--c++/unit_reduction.h2
3 files changed, 7 insertions, 7 deletions
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 <utility>
-namespace kelun {
+namespace kel {
template<typename StorageT, typename... UnitTypes, int64_t... Exponents>
unit<StorageT,unit_component<UnitTypes, Exponents>...>::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<typename UnitT, int64_t UnitE>
-inline ostream& operator<<(ostream& o, const kelun::unit_base<UnitT,UnitE>& ele){
+inline ostream& operator<<(ostream& o, const kel::unit_base<UnitT,UnitE>& ele){
o<<UnitT::short_name;
if constexpr ( UnitE != 1 ){
o<<'^'<<'('<<UnitE<<')';
@@ -14,7 +14,7 @@ inline ostream& operator<<(ostream& o, const kelun::unit_base<UnitT,UnitE>& ele)
}
}
-namespace kelun {
+namespace kel {
template<typename... T>
struct unit_print_impl {
static_assert(is_always_false<T...>, "Template type not supported");
@@ -41,14 +41,14 @@ struct unit_print_impl<unit_base<UnitT,UnitE>,unit_base<UnitTL,UnitEL>...> {
namespace std {
template<typename StorageT, typename... T>
-inline ostream& operator<<(ostream& o, const kelun::unit<StorageT,T...>& unit);
+inline ostream& operator<<(ostream& o, const kel::unit<StorageT,T...>& unit);
template<typename StorageT, typename... UnitT, int64_t... UnitE>
-inline ostream& operator<<(ostream& o, const kelun::unit<StorageT,kelun::unit_base<UnitT,UnitE>...>& unit){
+inline ostream& operator<<(ostream& o, const kel::unit<StorageT,kel::unit_base<UnitT,UnitE>...>& unit){
o << unit.data();
if constexpr (sizeof...(UnitT) > 0) {
auto& o_ret = o << ' '<<'[';
- return kelun::unit_print_impl<kelun::unit_base<UnitT,UnitE>...>::print(o_ret);
+ return kel::unit_print_impl<kel::unit_base<UnitT,UnitE>...>::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 <cstdint>
#include <type_traits>
-namespace kelun {
+namespace kel {
template<typename... T>
constexpr bool is_always_false = false;