From cf18707c086a1b47600c924ae1f33a379d1d3fb2 Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Tue, 23 May 2023 18:32:59 +0200 Subject: nix: Fixed dev install and moved folders --- src/kelunit/unit.tmpl.h | 53 ------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/kelunit/unit.tmpl.h (limited to 'src/kelunit/unit.tmpl.h') diff --git a/src/kelunit/unit.tmpl.h b/src/kelunit/unit.tmpl.h deleted file mode 100644 index d89e0c1..0000000 --- a/src/kelunit/unit.tmpl.h +++ /dev/null @@ -1,53 +0,0 @@ -#include - -namespace kelun { - -template -unit...>::unit(const value_type& value_): - value{value_}{} - -template -unit...>::unit(value_type&& value_):value{std::move(value_)}{} - -template -unit...>& unit...>::operator=(const typename unit...>::value_type& value_){ - value = value_; - return *this; -} - -template -unit...>& unit...>::operator=(typename unit...>::value_type&& value_){ - value = std::move(value_); - return *this; -} - -template -unit...> unit...>::operator+(const unit...>& rhs){ - return value + rhs.value; -} - -template -unit...> unit...>::operator-(const unit...>& rhs){ - return value - rhs.value; -} - -template -template -typename unit_multiplication...>, unit>::type -unit...>::operator*(const unit& rhs){ - return value * rhs.data(); -} - -template -template -typename unit_multiplication...>, typename unit_invert::type>::type -unit...>::operator/(const unit& rhs){ - typename unit_invert::type rhs_inverted{static_cast(1)/rhs.data()}; - return value * rhs_inverted.data(); -} - -template -typename unit...>::value_type unit...>::data() const { - return value; -} -} -- cgit v1.2.3