Syntax error using signal1 from Boost 1.34.1 on VC6
I am trying to use Boost signals to set up events with VC6. I discovered
that build 1.34.1 is the last build to support VC++ 6.0, so that is the
version I need to compile with. I noticed from the Signals tutorial on
the Boost site that for VC++ 6.0, I have to use the portable syntax.
So I declared my signal:
#include
Igor R
typedef boost::signal1
signal_t; Do you have a space between ">>" in your real code?
I hate when I make those "all too obvious and stupid" mistakes. Problem corrected. Thanks!
On 05/17/2011 02:49 PM, tangleman@secules.net wrote:
typedef boost::signal1
signal_t;
a common pitfall you may run into when using C++ templates is that '>>' is treated by the compiler as an operator, namely 'right-shift' operator (operator>>()). in order to avoid this issue you should always use a space between the '>' characters when instantiating nested templates. have a look in
participants (4)
-
Adam Romanek
-
Igor R
-
Tangleman
-
tangleman@secules.net