aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/platform/win/Exception.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-25 17:42:19 +0800
committercrupest <crupest@outlook.com>2022-01-25 17:42:19 +0800
commit839292efaaf8d997b2cbca7abae8c6e575f6c01a (patch)
tree0f0354fca793e75b90f9d02e86351b2a86601f34 /include/cru/common/platform/win/Exception.hpp
parent2ed65999ef6f3e1156427dd3efe04353ae657882 (diff)
downloadcru-839292efaaf8d997b2cbca7abae8c6e575f6c01a.tar.gz
cru-839292efaaf8d997b2cbca7abae8c6e575f6c01a.tar.bz2
cru-839292efaaf8d997b2cbca7abae8c6e575f6c01a.zip
...
Diffstat (limited to 'include/cru/common/platform/win/Exception.hpp')
-rw-r--r--include/cru/common/platform/win/Exception.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cru/common/platform/win/Exception.hpp b/include/cru/common/platform/win/Exception.hpp
index f90efe0a..0774327f 100644
--- a/include/cru/common/platform/win/Exception.hpp
+++ b/include/cru/common/platform/win/Exception.hpp
@@ -38,8 +38,10 @@ class CRU_BASE_API Win32Error : public platform::PlatformException {
public:
// ::GetLastError is automatically called to get the error code.
// The same as Win32Error(::GetLastError(), message)
- explicit Win32Error(std::string_view message);
- Win32Error(DWORD error_code, std::string_view message);
+ [[deprecated]] explicit Win32Error(std::string_view message);
+ explicit Win32Error(String message);
+ [[deprecated]] Win32Error(DWORD error_code, std::string_view message);
+ Win32Error(DWORD error_code, String message);
CRU_DEFAULT_COPY(Win32Error)
CRU_DEFAULT_MOVE(Win32Error)