aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/pdb/error.hpp6
1 files changed, 1 insertions, 5 deletions
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<int>(code), category_windows()};
-}
+std::system_error windows(DWORD code, const char* function);
} // namespace error
} // namespace pdb