[CoinUtils-tickets] [COIN-OR Common Utilities] #55: #define min/max ... conflict with std::numeric_limits<>::max/min

COIN-OR Common Utilities coin-trac at coin-or.org
Tue Sep 16 17:34:53 EDT 2008


#55: #define min/max ... conflict with std::numeric_limits<>::max/min
----------------------+-----------------------------------------------------
  Reporter:  slannez  |      Owner:             
      Type:  defect   |     Status:  closed     
  Priority:  minor    |    Version:  trunk (SVN)
Resolution:  fixed    |   Keywords:             
----------------------+-----------------------------------------------------
Changes (by ladanyi):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Changed all occurrences of min/max to CoinMin/CoinMax. Those are inlined
 template functions, so they should be just as fast as std::min and they
 are platform independent...

 Unfortunately, it's up to the project managers to keep using
 CoinMin/CoinMax...

 --Laci

-- 
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/55#comment:1>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list