Merge pull request #466 from mpark/C.30

C.30: Fixed a typo in the example.
This commit is contained in:
Gabriel Dos Reis 2015-12-16 18:22:38 -08:00
commit acb20cff05

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>
struct final_action { // slightly simplified
A act;
final_action(F a) :act{a} {}
final_action(A a) :act{a} {}
~final_action() { act(); }
};