diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-05 00:03:59 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-05 00:03:59 +0200 |
| commit | 3a967fed3cbbb706fd723b7752d28094fea7fcb1 (patch) | |
| tree | 034eb7069bfad5065544efda07bf4653ccb08627 /include | |
| parent | fix .clang-tidy (diff) | |
| download | winapi-common-3a967fed3cbbb706fd723b7752d28094fea7fcb1.tar.gz winapi-common-3a967fed3cbbb706fd723b7752d28094fea7fcb1.zip | |
upgrade to nested namespaces
Diffstat (limited to 'include')
| -rw-r--r-- | include/winapi/error.hpp | 6 | ||||
| -rw-r--r-- | include/winapi/process_io.hpp | 6 |
2 files changed, 4 insertions, 8 deletions
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 <string> #include <system_error> -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 diff --git a/include/winapi/process_io.hpp b/include/winapi/process_io.hpp index 9da442f..ac678e6 100644 --- a/include/winapi/process_io.hpp +++ b/include/winapi/process_io.hpp @@ -12,8 +12,7 @@ #include <string_view> #include <utility> -namespace winapi { -namespace process { +namespace winapi::process { struct Stream { Stream(Handle&& handle) : handle{std::move(handle)} {} @@ -68,5 +67,4 @@ struct IO { Stderr std_err; }; -} // namespace process -} // namespace winapi +} // namespace winapi::process |
