sml icon indicating copy to clipboard operation
sml copied to clipboard

document that events cannot be final

Open marcpawl opened this issue 5 years ago • 1 comments

Classes that are wrapped by event cannot be final.

class A{}; class B final : public A {} ... make_transition_table( "before"_s + event<B> = "after"_s ); will not compile on gcc 8.2.1

marcpawl avatar Apr 04 '19 19:04 marcpawl

I just ran into this because I wanted to use protobuf messages as events, but can't because they are final.

eadlam avatar Jul 19 '21 14:07 eadlam