From ee64b7ec17a3c522d5b8a239668f5d7c34cbbaaf Mon Sep 17 00:00:00 2001 From: Ian Hattendorf Date: Tue, 17 Apr 2018 16:35:25 -0700 Subject: [PATCH] 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 --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index d5bcaea..eee46a0 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -19175,13 +19175,13 @@ Direct expression of an idea minimizes mistakes. auto pp1 = make_pair("Tokyo", 9.00); // {C-style string,double} intended? pair 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