Boost logo

Boost Users :

Subject: Re: [Boost-users] [msm] forward declaration of state machine withnon-default constructor
From: Manuel Schiller (caligano_at_[hidden])
Date: 2014-08-29 18:38:25


Hi Christophe,

thanks for the reply.
Sure, I can 'repeat' the constructor / its arguments. I just thought maybe
I can avoid this.

Bye
Manuel

2014-08-29 21:13 GMT+02:00 <christophe.j.henry_at_[hidden]>:

> Hi Manuel,
>
> > I want to forward declare a state machine which has a non-default
> constructor.
> >struct wrapper::fsm : public boost::msm::back::state_machine<player_>
> >{
> > using boost::msm::back::state_machine<player_>::state_machine;
> >};
>
> I think you can’t “using” template constructors. Try:
>
> fsm(int some_value):boost::msm::back::state_machine<player_>(some_value){}
>
> HTH,
> Christophe
>
> _______________________________________________
> 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