Merge pull request #1198 from ianhattendorf/SL-str-12-cpp-14

SL.str.12: s suffix is available in C++14
This commit is contained in:
Gabriel Dos Reis 2018-04-30 11:16:47 -07:00 committed by GitHub
commit 20d9f42674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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