diff options
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 |