aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/platform/win/Exception.hpp
diff options
context:
space:
mode:
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)