Skip to content

Commit

Permalink
std::string_literals is a C++14 feature and target is C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Dec 28, 2023
1 parent 881d79f commit dc8bd8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions RefactorTest/ReplaceAutoWithType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,8 @@ void f1()
auto i{3};
REQUIRE_EQUAL(3, i);
REQUIRE_TYPE_EQUAL(int, i);
using namespace std::string_literals;
// #TEST#: RAWT30 Replace auto with type
auto s{"Text"s};
auto s{std::string{"Text"}};
REQUIRE_EQUAL(std::string{"Text"}, s);
REQUIRE_TYPE_EQUAL(std::string, s);
}
Expand Down

0 comments on commit dc8bd8c

Please sign in to comment.