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