Boost logo

Boost Users :

Subject: Re: [Boost-users] Syntax error using signal1 from Boost 1.34.1 on VC6
From: Adam Romanek (a.romanek_at_[hidden])
Date: 2011-05-17 09:58:51


On 05/17/2011 02:49 PM, tangleman_at_[hidden] wrote:
> typedef boost::signal1<void, std::vector<unsigned char>> 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


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