Boost logo

Boost Users :

Subject: Re: [Boost-users] [statechart] template state derived from simple_state compile error
From: Nicolas Emiliani (n.r.emiliani_at_[hidden])
Date: 2010-07-26 08:45:40


On Sun, Jul 25, 2010 at 6:49 PM, Nicolas Emiliani <n.r.emiliani_at_[hidden]>wrote:

>
>
> On Sun, Jul 25, 2010 at 6:04 PM, Igor R <boost.lists_at_[hidden]> wrote:
>
>> > I'm experiencing a compiling problem with boost.statechart.
>> > I'm using gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
>>
>> FWIW, your code compiles well in MSVC10
>>
>
> Thanks Igor, well, at list I know it's some syntax misbehavior related to
> gcc
>

Well, finally cracked it. Apparently since the method invocation is
dependant
on the parameter of the template the keyword template should be used,
resulting in:

this->template transit< post<TCallBackType> > ();

Ohhhh yeah!.... Nasssssty.

>
>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>
>



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