Skip to content

Commit

Permalink
Fixed tls_syntax.h max() conflict with windows macro
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoNasci authored Oct 18, 2024
1 parent 883e6c7 commit c29574c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlspp/lib/bytes/include/tls/tls_syntax.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace mlspp::tls {

// For indicating no min or max in vector definitions
const size_t none = std::numeric_limits<size_t>::max();
const size_t none = (std::numeric_limits<size_t>::max)();

class WriteError : public std::invalid_argument
{
Expand All @@ -37,7 +37,7 @@ class ReadError : public std::invalid_argument
class ostream
{
public:
static const size_t none = std::numeric_limits<size_t>::max();
static const size_t none = (std::numeric_limits<size_t>::max)();

void write_raw(const std::vector<uint8_t>& bytes);

Expand Down

0 comments on commit c29574c

Please sign in to comment.