You need to ensure that *all* references to min and max are enclosed in brackets for example

 

(std::numeric_limits<FPT>::max)(); 

 

http://www.boost.org/doc/libs/1_34_0/more/lib_guide.htm

 

says:

 

 

 

HTH

 

Paul

 

 

---

Paul A. Bristow

Prizet Farmhouse

Kendal UK LA8 8AB

+44 01539 561830

 

 

 

From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Scott Mueller
Sent: 12 June 2014 22:36
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] std::limits compile errors with boost

 

It looks like the min and max macros are defined for your project. I don’t know how you do it in gcc, but in Visual Studio you define NOMINMAX to disable those. This is necessary because <limits> won’t work otherwise.

 

Best regards,

 

M. Mueller

 

From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of David Frank
Sent: Thursday, June 12, 2014 11:34 AM
To: boost-users@lists.boost.org
Subject: [Boost-users] std::limits compile errors with boost

 

Anyone has seen this?:

In file included from ../include/boost/lockfree/detail/freelist.hpp:12,
                 from ../include/boost/lockfree/queue.hpp:24,
                 from test.cpp:2:
/usr/local/powerpc-linux-gnu/include/c++/4.3.2/limits:287:22: error: macro "min" requires 2 arguments, but only 1 given

 

Thanks