Re: [Boost-bugs] [Boost C++ Libraries] #10917: min conflict in transform_width.hpp

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10917: min conflict in transform_width.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-09 18:00:46


#10917: min conflict in transform_width.hpp
-------------------------------+---------------------------
  Reporter: lordoffox@… | Owner: ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by michel):

 Boost has
 [[http://www.boost.org/development/requirements.html#Directory_structure|documentation]]
 for it:
   Make sure your code compiles in the presence of the `min()` and `max()`
 macros. Some platform headers define `min()` and `max()` macros which
 cause some common C++ constructs to fail to compile. Some simple tricks
 can protect your code from inappropriate macro substitution:
   * If you want to call `std::min()` or `std::max()`:
     * If you do not require argument-dependent look-up, use
 `(std::min)(a,b)`.
   ...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10917#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC