| 1 |
#ifndef __GOODBYE_AH__ |
| 2 |
#define __GOODBYE_AH__ |
| 3 |
|
| 4 |
#include <iostream> |
| 5 |
|
| 6 |
aspect Goodbye { |
| 7 |
advice destruction("World") : after() { |
| 8 |
//print "Goodbye World" after destructing a World instance |
| 9 |
std::cout << "Goodbye World" << std::endl; |
| 10 |
} |
| 11 |
}; |
| 12 |
|
| 13 |
#endif |