From 39895a677e5d370824e702cfe90ebc67737b8482 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 12 May 2021 09:12:09 +0200 Subject: import ArduinoJson 6.18.0 --- .../lib/ArduinoJson/Strings/IsWriteableString.hpp | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 include/lib/ArduinoJson/Strings/IsWriteableString.hpp (limited to 'include/lib/ArduinoJson/Strings/IsWriteableString.hpp') diff --git a/include/lib/ArduinoJson/Strings/IsWriteableString.hpp b/include/lib/ArduinoJson/Strings/IsWriteableString.hpp new file mode 100644 index 0000000..32039e3 --- /dev/null +++ b/include/lib/ArduinoJson/Strings/IsWriteableString.hpp @@ -0,0 +1,37 @@ +// ArduinoJson - https://arduinojson.org +// Copyright Benoit Blanchon 2014-2021 +// MIT License + +#pragma once + +#include +#include + +#if ARDUINOJSON_ENABLE_ARDUINO_STRING +#include +#endif + +#if ARDUINOJSON_ENABLE_STD_STRING +#include +#endif + +namespace ARDUINOJSON_NAMESPACE { + +template +struct IsWriteableString : false_type {}; + +#if ARDUINOJSON_ENABLE_ARDUINO_STRING + +template <> +struct IsWriteableString< ::String> : true_type {}; + +#endif + +#if ARDUINOJSON_ENABLE_STD_STRING + +template +struct IsWriteableString > + : true_type {}; + +#endif +} // namespace ARDUINOJSON_NAMESPACE -- cgit v1.2.3