diff options
author | Brad King <brad.king@kitware.com> | 2020-01-28 15:58:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-28 15:58:11 (GMT) |
commit | e4e41d33d62236f60d909bd1d06b417590933980 (patch) | |
tree | 2b5f80a189c1d7426b7d261b4d44940441a6f8c3 /Tests/CMakeLib | |
parent | 571205fb6b661e33937637133157445fbbe3f510 (diff) | |
parent | 8f839d02e3c5b6468cbc4120f1829621a59997d8 (diff) | |
download | CMake-e4e41d33d62236f60d909bd1d06b417590933980.zip CMake-e4e41d33d62236f60d909bd1d06b417590933980.tar.gz CMake-e4e41d33d62236f60d909bd1d06b417590933980.tar.bz2 |
Merge topic 'cmsting-stl-compatibility'
8f839d02e3 cm::String: enhance compatibility with STL
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4281
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r-- | Tests/CMakeLib/testString.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/CMakeLib/testString.cxx b/Tests/CMakeLib/testString.cxx index d7b3200..1fd3f38 100644 --- a/Tests/CMakeLib/testString.cxx +++ b/Tests/CMakeLib/testString.cxx @@ -191,7 +191,7 @@ static bool testConstructFromView() { std::cout << "testConstructFromView()\n"; cm::string_view view = cstr; - return testFromCStr(view); + return testFromCStr(cm::String(view)); } static bool testAssignFromView() @@ -297,7 +297,7 @@ static bool testFromStaticStringView(cm::String str) static bool testConstructFromStaticStringView() { std::cout << "testConstructFromStaticStringView()\n"; - return testFromStaticStringView(staticStringView); + return testFromStaticStringView(cm::String(staticStringView)); } static bool testAssignFromStaticStringView() @@ -796,7 +796,7 @@ static bool testMethod_substr_AtEnd(cm::String str) static bool testMethod_substr_AtEndBorrowed() { std::cout << "testMethod_substr_AtEndBorrowed()\n"; - return testMethod_substr_AtEnd("abc"_s); + return testMethod_substr_AtEnd(cm::String("abc"_s)); } static bool testMethod_substr_AtEndOwned() @@ -855,7 +855,7 @@ static bool testMethod_substr_AtStart(cm::String str) static bool testMethod_substr_AtStartBorrowed() { std::cout << "testMethod_substr_AtStartBorrowed()\n"; - return testMethod_substr_AtStart("abc"_s); + return testMethod_substr_AtStart(cm::String("abc"_s)); } static bool testMethod_substr_AtStartOwned() @@ -1146,7 +1146,7 @@ static bool testAddition() static bool testStability() { std::cout << "testStability()\n"; - cm::String str = "abc"_s; + cm::String str("abc"_s); ASSERT_TRUE(!str.is_stable()); ASSERT_TRUE(str.str_if_stable() == nullptr); str.stabilize(); |