summaryrefslogtreecommitdiff
path: root/c++
diff options
context:
space:
mode:
Diffstat (limited to 'c++')
-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;