Browse Source

add operator""_sv().

master
roker 4 years ago
parent
commit
2a8fbafbb8
  1. 15
      src/string_view.hh

15
src/string_view.hh

@ -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