aboutsummaryrefslogtreecommitdiff
path: root/src/base.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-03-31 17:14:47 +0800
committercrupest <crupest@outlook.com>2019-03-31 17:14:47 +0800
commitfbfd90255731954fb80483f4ba7188d3611fafec (patch)
tree8e3283c911d7aec76130d6a1dc7f5d8a85512b59 /src/base.hpp
parent877f65e2e2c40eecc7cfeb194dc9d391af60711b (diff)
downloadcru-fbfd90255731954fb80483f4ba7188d3611fafec.tar.gz
cru-fbfd90255731954fb80483f4ba7188d3611fafec.tar.bz2
cru-fbfd90255731954fb80483f4ba7188d3611fafec.zip
...
Diffstat (limited to 'src/base.hpp')
-rw-r--r--src/base.hpp39
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