Boost logo

Boost Users :

Subject: Re: [Boost-users] [msm] forward declaration of state machine withnon-default constructor
From: christophe.j.henry_at_[hidden]
Date: 2014-08-29 15:13:01


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 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