From 488653602d0636a1fa5ef6e64cabb9b903dce42a Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 25 Aug 2023 10:10:51 +0200 Subject: Renamed src folder to c++ --- c++/unit_cast.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 c++/unit_cast.h (limited to 'c++/unit_cast.h') diff --git a/c++/unit_cast.h b/c++/unit_cast.h new file mode 100644 index 0000000..8dc2689 --- /dev/null +++ b/c++/unit_cast.h @@ -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