From c29574cae953122b73cfd23cdfe340eb022ad1ff Mon Sep 17 00:00:00 2001 From: Matteo Lorenzo Nasci Date: Fri, 18 Oct 2024 14:19:58 +0200 Subject: [PATCH] Fixed tls_syntax.h max() conflict with windows macro --- mlspp/lib/bytes/include/tls/tls_syntax.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlspp/lib/bytes/include/tls/tls_syntax.h b/mlspp/lib/bytes/include/tls/tls_syntax.h index 09d5940d9d..477d95bdf8 100755 --- a/mlspp/lib/bytes/include/tls/tls_syntax.h +++ b/mlspp/lib/bytes/include/tls/tls_syntax.h @@ -14,7 +14,7 @@ namespace mlspp::tls { // For indicating no min or max in vector definitions -const size_t none = std::numeric_limits::max(); +const size_t none = (std::numeric_limits::max)(); class WriteError : public std::invalid_argument { @@ -37,7 +37,7 @@ class ReadError : public std::invalid_argument class ostream { public: - static const size_t none = std::numeric_limits::max(); + static const size_t none = (std::numeric_limits::max)(); void write_raw(const std::vector& bytes);