Browse Source

add operator""_sv().

master
roker 12 months ago
parent
commit
2a8fbafbb8
1 changed files with 13 additions and 2 deletions
  1. +13
    -2
      src/string_view.hh

+ 13
- 2
src/string_view.hh View File

@ -32,11 +32,22 @@ namespace pEp
{
return s += v;
}
// using ::std::operator+=;
// using ::boost::operator+=;
} // end of namespace pEp
#endif // C++17 switch
#endif // PEP_DATATYPES_CONFIG_HH
namespace pEp
{
constexpr
string_view operator""_sv(const char* s, size_t sz) noexcept
{
return string_view(s,sz);
}
}
#endif // PEP_DATATYPES_STRING_VIEW_HH

Loading…
Cancel
Save