Skip to content

std::max causes compilation error on Windows #654

Closed
@cacharle

Description

@cacharle

There is one use of std::max that doesn't use the (std::max) trick when the max macro is defined by Windows.

cppzmq/zmq.hpp

Line 2756 in 21c83ca

return static_cast<size_t>(std::max(rc, 0));

My current workaround is to add #define NOMINMAX to all my files but it would be nice if the library could handle it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions