From 700cde2d499742160deb361f42b7e861ae1db8ed Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Mon, 29 Jul 2024 14:18:30 +0200 Subject: Renaming to new standard --- c++/unit_cast.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 c++/unit_cast.hpp (limited to 'c++/unit_cast.hpp') diff --git a/c++/unit_cast.hpp b/c++/unit_cast.hpp new file mode 100644 index 0000000..8dc2689 --- /dev/null +++ b/c++/unit_cast.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include + +namespace kel { +template +class unit_convert { + static_assert(always_false, "Units can't be converted to each other"); +}; + +template +class unit_convert { + static constexpr factor = static_cast(1); +}; +} -- cgit v1.2.3