From 1cbd0a3b824d1821549b4c7ede688f500de25443 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 20 Sep 2020 00:09:34 +0300 Subject: pdb::error: include function name in error message --- include/pdb/error.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/pdb') diff --git a/include/pdb/error.hpp b/include/pdb/error.hpp index beb0489..c927719 100644 --- a/include/pdb/error.hpp +++ b/include/pdb/error.hpp @@ -27,11 +27,7 @@ inline const CategoryWindows& category_windows() { return instance; } -inline std::system_error windows(DWORD code) { - static_assert(sizeof(DWORD) == sizeof(int), "Aren't DWORDs the same size as ints?"); - - return std::system_error{static_cast(code), category_windows()}; -} +std::system_error windows(DWORD code, const char* function); } // namespace error } // namespace pdb -- cgit v1.2.3