Boost logo

Boost Users :

From: Christian Mol (cpmol_at_[hidden])
Date: 2007-04-23 11:06:48


Peter Dimov wrote:
> Christian Mol wrote:
>
>> Hello,
>>
>> Probably a newbie question, but here it goes: if I include the boost
>> thread as follows
>>
>> #include <boost/thread/thread.hpp>
>>
>> and try to compile my library in MSVC++ 2005, I get a lot of errors in
>> c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp
>>
>> I have included a piece of the errorlog next:
>>
>> 3>c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(120) :
>> error C2917: '_av *' : invalid template-parameter
>> 3>c:\boost\include\boost-1_33_1\boost\bind\mem_fn_template.hpp(126) :
>> error C2146: syntax error : missing ';' before identifier
>> 'second_argument_type'
>>
>
> [...]
>
>
>> Could someone give me any pointers to what could be the problem? When
>> using it in a very simple program, it does work. Including it in my
>> quite large library it does not work.
>>
>
> My guess is that a header that you include before thread.hpp has #defined A1
> to something and forgotten to #undef it afterwards.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>

Thanks! That was it.


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