diff options
Diffstat (limited to 'include/lib/ArduinoJson/Polyfills/type_traits/is_floating_point.hpp')
-rw-r--r-- | include/lib/ArduinoJson/Polyfills/type_traits/is_floating_point.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/lib/ArduinoJson/Polyfills/type_traits/is_floating_point.hpp b/include/lib/ArduinoJson/Polyfills/type_traits/is_floating_point.hpp new file mode 100644 index 0000000..b7e9d3d --- /dev/null +++ b/include/lib/ArduinoJson/Polyfills/type_traits/is_floating_point.hpp @@ -0,0 +1,19 @@ +// ArduinoJson - https://arduinojson.org +// Copyright Benoit Blanchon 2014-2021 +// MIT License + +#pragma once + +#include "integral_constant.hpp" + +namespace ARDUINOJSON_NAMESPACE { + +template <typename> +struct is_floating_point : false_type {}; + +template <> +struct is_floating_point<float> : true_type {}; + +template <> +struct is_floating_point<double> : true_type {}; +} // namespace ARDUINOJSON_NAMESPACE |