From 613cfebc0b2a2968260e5f9122d7b5e7ba3755c3 Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Tue, 23 May 2023 16:38:43 +0200 Subject: c++: Renamed class and fixed namespace naming --- src/kelunit/unit.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/kelunit/unit.h') diff --git a/src/kelunit/unit.h b/src/kelunit/unit.h index 4958eb9..a8e8320 100644 --- a/src/kelunit/unit.h +++ b/src/kelunit/unit.h @@ -1,41 +1,41 @@ #pragma once -#include "./unit_reduction.h" +#include "unit_reduction.h" -namespace kelun { +namespace kel { template -struct unit_base {}; +struct unit_component {}; template class unit; template -class unit...> { +class unit...> { public: using value_type = StorageT; unit() = default; - unit(const unit...>&) = default; - unit(unit...>&&) = default; + unit(const unit...>&) = default; + unit(unit...>&&) = default; - unit...>& operator=(const unit...>&) = default; - unit...>& operator=(unit...>&&) = default; + unit...>& operator=(const unit...>&) = default; + unit...>& operator=(unit...>&&) = default; unit(const value_type&); unit(value_type&&); - unit...>& operator=(const value_type&); - unit...>& operator=(value_type&&); + unit...>& operator=(const value_type&); + unit...>& operator=(value_type&&); - unit...> operator+(const unit...>& rhs); - unit...> operator-(const unit...>& rhs); + unit...> operator+(const unit...>& rhs); + unit...> operator-(const unit...>& rhs); template - typename unit_multiplication...>, unit>::type operator*(const unit& rhs); + typename unit_multiplication...>, unit>::type operator*(const unit& rhs); template - typename unit_multiplication...>, typename unit_invert::type>::type operator/(const unit& rhs); + typename unit_multiplication...>, typename unit_invert::type>::type operator/(const unit& rhs); value_type data() const; private: -- cgit v1.2.3