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