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 --- include/lib/ArduinoJson/Polyfills/mpl/max.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/lib/ArduinoJson/Polyfills/mpl/max.hpp (limited to 'include/lib/ArduinoJson/Polyfills/mpl') diff --git a/include/lib/ArduinoJson/Polyfills/mpl/max.hpp b/include/lib/ArduinoJson/Polyfills/mpl/max.hpp new file mode 100644 index 0000000..9ac47a5 --- /dev/null +++ b/include/lib/ArduinoJson/Polyfills/mpl/max.hpp @@ -0,0 +1,26 @@ +// ArduinoJson - https://arduinojson.org +// Copyright Benoit Blanchon 2014-2021 +// MIT License + +#pragma once + +#include + +#include // for size_t + +namespace ARDUINOJSON_NAMESPACE { + +// A meta-function that returns the highest value +template Y)> +struct Max {}; + +template +struct Max { + static const size_t value = X; +}; + +template +struct Max { + static const size_t value = Y; +}; +} // namespace ARDUINOJSON_NAMESPACE -- cgit v1.2.3