#include <boost/sml.hpp>
namespace sml = boost::sml;
struct data_type {
data_type() {}
data_type(const data_type &) = delete;
};
struct test_sm {
test_sm() {}
auto operator()() const {
using namespace sml;
return make_transition_table(
*"start"_s = X
);
}
data_type data;
};
int main() {
using namespace sml;
test_sm test;
sm<test_sm> test_sm(test);
}
It gives an error of "use of deleted function" caused by the deleted copy constructor like below.
error: use of deleted function ‘test_sm::test_sm(const test_sm&)’ sm_impl(const TPool &p, aux::false_type) : sm_t{aux::try_get<sm_t>(&p)}, transitions_{(*this)()} {
This did not happen at the revision on 2017/5/30. Is this intentional change?
If I compile the following code,
It gives an error of "use of deleted function" caused by the deleted copy constructor like below.
This did not happen at the revision on 2017/5/30. Is this intentional change?