Skip to content

Commit

Permalink
Changed error message, removed comment from testfile
Browse files Browse the repository at this point in the history
  • Loading branch information
devzeb committed Jan 14, 2024
1 parent 8f271d5 commit c44d301
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion include/boost/sml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,10 @@ struct sm_impl : aux::conditional_t<aux::should_not_subclass_statemachine_class<
aux::would_instantiate_missing_ctor_parameter<sm_t, decltype(&p)>()),
"When policy sml::dont_instantiate_statemachine_class is used, you have to provide a reference to an "
"instance of the transition table type (boost::sml::sm< your_transition_table_type >) "
"as well as a reference to instances of all sub-statemachine types as constructor parameters."
"as well as a reference to instances of all sub-statemachine types as constructor parameters like this: \n"
"boost::sml::sm< your_transition_table_type , sml::dont_instantiate_statemachine_class >{\n"
" your_transition_table_instance\n"
"}"
);

return aux::try_get<T>(&p)();
Expand Down
6 changes: 1 addition & 5 deletions test/ft/dont_instantiate_statemachine_class.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
//
// Created by seb on 14.01.24.
//

#include <boost/sml.hpp>
#include <boost/sml.hpp>

namespace sml = boost::sml;

Expand Down

0 comments on commit c44d301

Please sign in to comment.