Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-04-23 08:42:46


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 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