This shows you the differences between two versions of the page.
| cpp:boost_fusion [2020/05/11 22:07] – created allspark | cpp:boost_fusion [2020/05/11 22:08] (current) – allspark | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| #include < | #include < | ||
| - | struct Callback_base { | ||
| - | virtual int execute() = 0; | ||
| - | }; | ||
| - | struct Up final : Callback_base | + | struct Up { |
| - | int execute() | + | int execute() |
| { | { | ||
| return 3; | return 3; | ||
| Line 15: | Line 12: | ||
| }; | }; | ||
| - | struct Down final : Callback_base | + | struct Down { |
| - | int execute() | + | int execute() |
| { | { | ||
| return 4; | return 4; | ||
| Line 22: | Line 19: | ||
| }; | }; | ||
| - | struct Home final : Callback_base | + | struct Home { |
| - | int execute() | + | int execute() |
| { | { | ||
| return 5; | return 5; | ||