C.30: Fixed a typo in the example.

This commit is contained in:
Michael Park 2015-12-17 01:57:05 +00:00
parent 023d60ce8b
commit d1abdd220c

View File

@ -3500,7 +3500,7 @@ Only define a non-default destructor if a class needs to execute code that is no
template<typename A> template<typename A>
struct final_action { // slightly simplified struct final_action { // slightly simplified
A act; A act;
final_action(F a) :act{a} {} final_action(A a) :act{a} {}
~final_action() { act(); } ~final_action() { act(); }
}; };