mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-23 07:17:30 +02:00
Tests: add user-defined literal ""_s
for std::string
This commit is contained in:
12
extras/tests/Helpers/Literals.hpp
Normal file
12
extras/tests/Helpers/Literals.hpp
Normal file
@ -0,0 +1,12 @@
|
||||
// ArduinoJson - https://arduinojson.org
|
||||
// Copyright © 2014-2024, Benoit BLANCHON
|
||||
// MIT License
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
// the space before _s is required by GCC 4.8
|
||||
inline std::string operator"" _s(const char* str, size_t len) {
|
||||
return std::string(str, len);
|
||||
}
|
Reference in New Issue
Block a user