Skip to content

Commit

Permalink
Merge branch 'master' into feature/xml.lite_tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Feb 8, 2021
2 parents 60cf8ae + 5e0d2e8 commit 53bdeab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/c++/str/include/str/String_.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,37 @@ namespace sys
#if CODA_OSS_DEFINE_std_u8string_ == 1
namespace std // This is slightly uncouth: we're not supposed to augment "std".
{
#if defined(_MSC_VER) && (_MSC_VER >= 1927)
#pragma warning(push)
#pragma warning(disable: 5052) // Keyword '...' was introduced in C++ 20 and requires use of the '...' command-line option
#endif
using char8_t = ::str::Char8_T;
#if defined(_MSC_VER) && (_MSC_VER >= 1927)
#pragma warning(pop)
#endif
using u8string = ::str::U8string;
}
#define CODA_OSS_lib_char8_t 1
#endif // CODA_OSS_DEFINE_std_u8string_

namespace coda_oss
{
#if defined(_MSC_VER) && (_MSC_VER >= 1927)
#pragma warning(push)
#pragma warning(disable: 5052) // Keyword '...' was introduced in C++ 20 and requires use of the '...' command-line option
#endif

#if CODA_OSS_lib_char8_t
using char8_t = std::char8_t;
using u8string = std::u8string;
#else
using char8_t = ::str::Char8_T;
using u8string = ::str::U8string;
#endif

#if defined(_MSC_VER) && (_MSC_VER >= 1927)
#pragma warning(pop)
#endif
}

#endif // CODA_OSS_str_String__h_INCLUDED_

0 comments on commit 53bdeab

Please sign in to comment.