Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang 9.0.0

Options
Warnings
Boost 1.71.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-9.0.0/include -std=gnu++2a
In file included from prog.cc:2:
/opt/wandbox/boost-sml/include/boost/sml.hpp:1591:55: error: function 'operator()' with deduced return type cannot be used before it is defined
  using transitions_t = decltype(aux::declval<sm_t>().operator()());
                                                      ^
prog.cc:30:20: note: in instantiation of template class 'boost::sml::v1_1_0::back::sm<boost::sml::v1_1_0::back::sm_policy<table> >' requested here
    sml::sm<table> sm;
                   ^
prog.cc:11:10: note: 'operator()' declared here
    auto operator()() const noexcept;
         ^
In file included from prog.cc:2:
/opt/wandbox/boost-sml/include/boost/sml.hpp:1592:3: error: static_assert failed due to requirement 'concepts::composable<table>::value' "Composable constraint is not satisfied!"
  static_assert(concepts::composable<sm_t>::value, "Composable constraint is not satisfied!");
  ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:47:1: error: extraneous closing brace ('}')
};
^
prog.cc:30:20: warning: private field 'sm' is not used [-Wunused-private-field]
    sml::sm<table> sm;
                   ^
1 warning and 3 errors generated.
Exit Code:
1