Boost logo

Boost :

Subject: Re: [boost] [bind] Error C4430 in bind.hpp
From: Robert Dailey (rcdailey_at_[hidden])
Date: 2012-03-15 09:25:54


Anyone? Could this maybe be due to a conflict in another third party
library I'm using?
On Mar 14, 2012 5:07 PM, "Robert Dailey" <rcdailey_at_[hidden]> wrote:

> I also forgot to mention I'm using Boost 1.48
>
> ---------
> Robert Dailey
>
>
> On Wed, Mar 14, 2012 at 5:07 PM, Robert Dailey <rcdailey_at_[hidden]> wrote:
>
>> For some reason when I include <boost/bind.hpp> I get the following
>> errors:
>>
>> 1>c:\code\work\cmake-mds\build-vc9\third_party\boost\1.48.0\include\boost\bind\bind.hpp(1200)
>> : error C4430: missing type specifier - int assumed. Note: C++ does not
>> support default-int
>> 1>c:\code\work\cmake-mds\build-vc9\third_party\boost\1.48.0\include\boost\bind\bind.hpp(1201)
>> : error C4430: missing type specifier - int assumed. Note: C++ does not
>> support default-int
>> 1>c:\code\work\cmake-mds\build-vc9\third_party\boost\1.48.0\include\boost\bind\bind.hpp(1203)
>> : error C4430: missing type specifier - int assumed. Note: C++ does not
>> support default-int
>> 1>c:\code\work\cmake-mds\build-vc9\third_party\boost\1.48.0\include\boost\bind\bind.hpp(1204)
>> : error C4430: missing type specifier - int assumed. Note: C++ does not
>> support default-int
>> 1>c:\code\work\cmake-mds\build-vc9\third_party\boost\1.48.0\include\boost\bind\bind.hpp(1206)
>> : error C4430: missing type specifier - int assumed. Note: C++ does not
>> support default-int
>> 1>c:\code\work\cmake-mds\build-vc9\third_party\boost\1.48.0\include\boost\bind\bind.hpp(1207)
>> : error C4430: missing type specifier - int assumed. Note: C++ does not
>> support default-int
>> 1>c:\code\work\cmake-mds\build-vc9\third_party\boost\1.48.0\include\boost\bind\bind.hpp(1209)
>> : error C4430: missing type specifier - int assumed. Note: C++ does not
>> support default-int
>> 1>c:\code\work\cmake-mds\build-vc9\third_party\boost\1.48.0\include\boost\bind\bind.hpp(1210)
>> : error C4430: missing type specifier - int assumed. Note: C++ does not
>> support default-int
>>
>> They point to this code in bind.hpp:
>>
>>
>> BOOST_BIND_OPERATOR( ==, equal )
>> BOOST_BIND_OPERATOR( !=, not_equal )
>>
>> BOOST_BIND_OPERATOR( <, less )
>> BOOST_BIND_OPERATOR( <=, less_equal )
>>
>> BOOST_BIND_OPERATOR( >, greater )
>> BOOST_BIND_OPERATOR( >=, greater_equal )
>>
>> BOOST_BIND_OPERATOR( &&, logical_and )
>> BOOST_BIND_OPERATOR( ||, logical_or )
>>
>> Any idea why this is failing? If more info is needed please let me know.
>>
>> ---------
>> Robert Dailey
>>
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk