Boost logo

Boost Users :

Subject: Re: [Boost-users] [Bind] Does not compile with local classes
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2009-07-15 09:40:22


On Wed, Jul 15, 2009 at 4:58 AM, Rudi Dittrich<rudid_at_[hidden]> wrote:
> I tried to use a local class as a callback function registering with a boost signal.

"Beware that a local class cannot be a valid template argument."
from http://www.research.att.com/~bs/glossary.html, search for "local class".

So you can't put it in a std::vector for example, and since bind is
template-based, can't use it with bind either. Simply move it out of
the function. --DD


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