Boost logo

Boost Users :

From: Simmons, Aaron (a-simmons1_at_[hidden])
Date: 2004-11-10 11:31:23


I'm using boost 1.31 with vc7.1. I've found a weird compilation
interaction between the boost.bind and boost.variant headers.

This code will compile fine:
        #include "boost/variant.hpp"
        #include "boost/bind.hpp"

But this code won't:
        #include "boost/bind.hpp"
        #include "boost/variant.hpp"

Here are the errors that are reported:

c:\Boost\include\boost-1_31\boost\mpl\less.hpp(39) : error C2760: syntax
error : expected ',' not ';'
        c:\Boost\include\boost-1_31\boost\mpl\less.hpp(51) : see
reference to class template instantiation 'boost::mpl::less<T1,T2>'
being compiled
c:\Boost\include\boost-1_31\boost\mpl\less.hpp(39) : error C2144: syntax
error : 'const bool' should be preceded by '}'
c:\Boost\include\boost-1_31\boost\mpl\less.hpp(39) : error C2062: type
'const bool' unexpected
c:\Boost\include\boost-1_31\boost\mpl\less.hpp(39) : error C2238:
unexpected token(s) preceding ';'
c:\Boost\include\boost-1_31\boost\mpl\less.hpp(42) : error C2065:
'value' : undeclared identifier


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net