#ifndef __GOODBYE_AH__ #define __GOODBYE_AH__ #include aspect Goodbye { advice destruction("World") : after() { //print "Goodbye World" after destructing a World instance std::cout << "Goodbye World" << std::endl; } }; #endif