SL.str.12: s suffix is available in C++14

std::literals::string_literals::operator""s is available since C++14
while std::pair class template argument deduction is available since
C++17
pull/1198/head
Ian Hattendorf 8 years ago
parent 1e4dba2c0b
commit ee64b7ec17
No known key found for this signature in database
GPG Key ID: BE8B1B445E06437D

@ -19175,13 +19175,13 @@ Direct expression of an idea minimizes mistakes.
auto pp1 = make_pair("Tokyo", 9.00); // {C-style string,double} intended?
pair<string, double> pp2 = {"Tokyo", 9.00}; // a bit verbose
auto pp3 = make_pair("Tokyo"s, 9.00); // {std::string,double} // C++17
auto pp3 = make_pair("Tokyo"s, 9.00); // {std::string,double} // C++14
pair pp4 = {"Tokyo"s, 9.00}; // {std::string,double} // C++17
##### Note
C++17
C++14
##### Enforcement

Loading…
Cancel
Save