1
0
Fork 0

Codechange: provide 'sv' (string_view) literals globally

pull/14156/head
Rubidium 2025-04-28 22:44:14 +02:00 committed by rubidium42
parent be53bd320d
commit 8b1c1cc33d
5 changed files with 2 additions and 8 deletions

View File

@ -73,6 +73,8 @@
#include <variant> #include <variant>
#include <vector> #include <vector>
using namespace std::literals::string_view_literals;
#if defined(UNIX) || defined(__MINGW32__) #if defined(UNIX) || defined(__MINGW32__)
# include <sys/types.h> # include <sys/types.h>
#endif #endif

View File

@ -12,8 +12,6 @@
#include "../core/string_builder.hpp" #include "../core/string_builder.hpp"
#include "../safeguards.h" #include "../safeguards.h"
using namespace std::literals;
TEST_CASE("StringBuilder - basic") TEST_CASE("StringBuilder - basic")
{ {
std::string buffer; std::string buffer;

View File

@ -17,8 +17,6 @@
#include "../safeguards.h" #include "../safeguards.h"
using namespace std::literals;
TEST_CASE("StringConsumer - basic") TEST_CASE("StringConsumer - basic")
{ {
StringConsumer consumer("ab"sv); StringConsumer consumer("ab"sv);

View File

@ -12,8 +12,6 @@
#include "../core/string_inplace.hpp" #include "../core/string_inplace.hpp"
#include "../safeguards.h" #include "../safeguards.h"
using namespace std::literals;
TEST_CASE("InPlaceReplacement") TEST_CASE("InPlaceReplacement")
{ {
std::array<char, 4> buffer{1, 2, 3, 4}; std::array<char, 4> buffer{1, 2, 3, 4};

View File

@ -15,8 +15,6 @@
#include "../safeguards.h" #include "../safeguards.h"
using namespace std::literals;
TEST_CASE("Utf8View - empty") TEST_CASE("Utf8View - empty")
{ {
Utf8View view; Utf8View view;