diff options
| author | crupest <crupest@outlook.com> | 2019-03-21 22:22:02 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2019-03-21 22:22:02 +0800 |
| commit | 962dc18ee4827b464764ec3708be3d00a9143971 (patch) | |
| tree | 3eea13894a14a26f2e2de07d3d6bc7789d409864 /src/base.hpp | |
| parent | afa2a079562d810e5ef611071b21a3568da9dfca (diff) | |
| download | cru-962dc18ee4827b464764ec3708be3d00a9143971.tar.gz cru-962dc18ee4827b464764ec3708be3d00a9143971.tar.bz2 cru-962dc18ee4827b464764ec3708be3d00a9143971.zip | |
...
Diffstat (limited to 'src/base.hpp')
| -rw-r--r-- | src/base.hpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/base.hpp b/src/base.hpp index a62a745b..2c511c4b 100644 --- a/src/base.hpp +++ b/src/base.hpp @@ -7,9 +7,6 @@ #include <string_view> namespace cru { -template <typename T> -struct type_tag {}; - // typedefs using String = std::wstring; using MultiByteString = std::string; @@ -38,9 +35,4 @@ struct Interface { [[noreturn]] inline void UnreachableCode() { throw std::logic_error("Unreachable code."); } - -inline void Require(const bool condition, - const MultiByteStringView& error_message) { - if (!condition) throw std::invalid_argument(error_message.data()); -} } // namespace cru |
