
Hi, Somehow my post to the Spirit forum didn't pass through, so I am repeating it here. The following problem results from just including spirit.hpp from the current Boost CVS, when compiling with VC7.1: boost\spirit\utility\impl\chset\range_run.ipp(57) : warning C4003: not enough actual parameters for macro 'min' Apparently there is a conflict with an STL macro... Is it a known problem? Regards, Arkadiy

boost\spirit\utility\impl\chset\range_run.ipp(57) : warning C4003: not enough actual parameters for macro 'min'
Apparently there is a conflict with an STL macro... Is it a known
Hi Arkadiy. problem? I don't really know if this is exactly the issue you are running into related but VC does have a problem with its min/max macros and their conflict with the STL min/max templates. 'std::min(a,b)' tries to use the macro so to force it to use the template you need to do something like '(std::min)(a,b)'. HTH, Jurko

Arkadiy Vertleyb wrote:
Hi,
Somehow my post to the Spirit forum didn't pass through, so I am repeating it here.
The following problem results from just including spirit.hpp from the current Boost CVS, when compiling with VC7.1:
boost\spirit\utility\impl\chset\range_run.ipp(57) : warning C4003: not enough actual parameters for macro 'min'
Apparently there is a conflict with an STL macro... Is it a known problem?
strange. I can't reproduce the error: #include <boost/spirit.hpp> compiles just fine for me. Are you sure you have the latest from the CVS? My CVS has: first == (std::numeric_limits<CharT>::min)() ? first : first-1; in range_run.ipp(57) [ http://tinyurl.com/5dzgx ] Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
participants (3)
-
Arkadiy Vertleyb
-
Joel
-
Jurko Gospodneti�