blob: 8dc2689c0f0c0735cc38eafdc726a9a9a37cb99c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
#include <forstio/core/common.h>
namespace kel {
template<typename S, typename From, typename To>
class unit_convert {
static_assert(always_false<S, From, To>, "Units can't be converted to each other");
};
template<typename Store, typename Same>
class unit_convert<Store, Same, Same> {
static constexpr factor = static_cast<Store>(1);
};
}
|