Why not make { "hello"s + "world"sv; } valid in C++20?

120 views Asked by At
#include <string>
#include <string_view>

using namespace std::literals;

int main()
{
    "hello"s + "world";   // ok
    "hello"s + "world"sv; // error
}

See online demo

Why not make "hello"s + "world"sv valid in C++20?

0

There are 0 answers