diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-05 12:47:08 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-05 12:55:28 -0800 |
| commit | 0b5e2e9e76e66b566cf4d3f68146fdbdff2bac05 (patch) | |
| tree | 5eca03ad9eeb2c91bcafa28fe3557e92b561524b /toolsrc/include/vcpkg_Strings.h | |
| parent | b280f57002044036c1c3c9a446c06e8e0a34fb00 (diff) | |
| download | vcpkg-0b5e2e9e76e66b566cf4d3f68146fdbdff2bac05.tar.gz vcpkg-0b5e2e9e76e66b566cf4d3f68146fdbdff2bac05.zip | |
Use nested namespace definition
Diffstat (limited to 'toolsrc/include/vcpkg_Strings.h')
| -rw-r--r-- | toolsrc/include/vcpkg_Strings.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toolsrc/include/vcpkg_Strings.h b/toolsrc/include/vcpkg_Strings.h index a117a1a81..28853cb5d 100644 --- a/toolsrc/include/vcpkg_Strings.h +++ b/toolsrc/include/vcpkg_Strings.h @@ -2,7 +2,7 @@ #include <vector> -namespace vcpkg {namespace Strings {namespace details +namespace vcpkg::Strings::details { inline const char* to_printf_arg(const std::string& s) { @@ -42,9 +42,9 @@ namespace vcpkg {namespace Strings {namespace details } std::wstring wformat_internal(const wchar_t* fmtstr, ...); -}}} +} -namespace vcpkg {namespace Strings +namespace vcpkg::Strings { template <class...Args> std::string format(const char* fmtstr, const Args&...args) @@ -75,4 +75,4 @@ namespace vcpkg {namespace Strings std::string trimmed(const std::string& s); void trim_all_and_remove_whitespace_strings(std::vector<std::string>* strings); -}} +} |
