From 3a967fed3cbbb706fd723b7752d28094fea7fcb1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 5 Jun 2026 00:03:59 +0200 Subject: upgrade to nested namespaces --- include/winapi/error.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/winapi/error.hpp') diff --git a/include/winapi/error.hpp b/include/winapi/error.hpp index 30237e3..259c18b 100644 --- a/include/winapi/error.hpp +++ b/include/winapi/error.hpp @@ -18,8 +18,7 @@ #include #include -namespace winapi { -namespace error { +namespace winapi::error { class CategoryWindows : public std::error_category { public: @@ -47,5 +46,4 @@ std::runtime_error custom(Ret ret, const char* function) { return std::runtime_error{std::format("Function {} failed with error code {}", function, ret)}; } -} // namespace error -} // namespace winapi +} // namespace winapi::error -- cgit v1.3