mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Merge pull request #466 from mpark/C.30
C.30: Fixed a typo in the example.
This commit is contained in:
@@ -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(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user