diff options
author | crupest <crupest@outlook.com> | 2019-03-31 17:14:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-31 17:14:47 +0800 |
commit | fbfd90255731954fb80483f4ba7188d3611fafec (patch) | |
tree | 8e3283c911d7aec76130d6a1dc7f5d8a85512b59 /src/base.hpp | |
parent | 877f65e2e2c40eecc7cfeb194dc9d391af60711b (diff) | |
download | cru-fbfd90255731954fb80483f4ba7188d3611fafec.tar.gz cru-fbfd90255731954fb80483f4ba7188d3611fafec.tar.bz2 cru-fbfd90255731954fb80483f4ba7188d3611fafec.zip |
...
Diffstat (limited to 'src/base.hpp')
-rw-r--r-- | src/base.hpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/base.hpp b/src/base.hpp deleted file mode 100644 index e3dfc1ee..00000000 --- a/src/base.hpp +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once -#include "pre.hpp" - -#include <cassert> -#include <chrono> -#include <stdexcept> -#include <string> -#include <string_view> - -namespace cru { -// typedefs -using String = std::wstring; -using MultiByteString = std::string; - -using StringView = std::wstring_view; -using MultiByteStringView = std::string_view; - -using FloatSecond = std::chrono::duration<double, std::chrono::seconds::period>; - -enum class FlowControl { Continue, Break }; - -class Object { - public: - Object() = default; - Object(const Object&) = default; - Object& operator=(const Object&) = default; - Object(Object&&) = default; - Object& operator=(Object&&) = default; - virtual ~Object() = default; -}; - -struct Interface { - virtual ~Interface() = default; -}; - -[[noreturn]] inline void UnreachableCode() { - throw std::logic_error("Unreachable code."); -} -} // namespace cru |