| 80 | } |
| 81 | |
| 82 | void Switch::exit() { |
| 83 | assert(current_state_ptr == this); |
| 84 | std::cout << "* exit()" << std::endl |
| 85 | << " this (cur) = " << this << std::endl |
| 86 | << " state<On> = " << &state<On>() << std::endl |
| 87 | << " state<Off> = " << &state<Off>() << std::endl; |
| 88 | } |
| 89 | |
| 90 | |
| 91 | // ---------------------------------------------------------------------------- |