mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
* F.6 noexcept * add overriders to isocpp.dic
This commit is contained in:
@@ -2740,9 +2740,13 @@ low-level functions.
|
|||||||
Destructors, `swap` functions, move operations, and default constructors should never throw.
|
Destructors, `swap` functions, move operations, and default constructors should never throw.
|
||||||
See also [C.44](#Rc-default00).
|
See also [C.44](#Rc-default00).
|
||||||
|
|
||||||
|
##### Note
|
||||||
|
|
||||||
|
Care must be taken on base virtual functions and functions part of a public interface because declaring a function `noexcept` is establishing a guarantee that all current and future implementations must abide by. For virtual function, all overriders must also be `noexcept` and removing `noexcept` from a function could break calling functions.
|
||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
* Flag functions that are not `noexcept`, yet cannot throw.
|
* (hard) Flag low-level functions that are not `noexcept`, yet cannot throw.
|
||||||
* Flag throwing `swap`, `move`, destructors, and default constructors.
|
* Flag throwing `swap`, `move`, destructors, and default constructors.
|
||||||
|
|
||||||
### <a name="Rf-smart"></a>F.7: For general use, take `T*` or `T&` arguments rather than smart pointers
|
### <a name="Rf-smart"></a>F.7: For general use, take `T*` or `T&` arguments rather than smart pointers
|
||||||
|
|||||||
@@ -400,6 +400,7 @@ overabstract
|
|||||||
overconstrain
|
overconstrain
|
||||||
overconstrained
|
overconstrained
|
||||||
overridable
|
overridable
|
||||||
|
overriders
|
||||||
p1
|
p1
|
||||||
p2
|
p2
|
||||||
p3
|
p3
|
||||||
|
|||||||
Reference in New Issue
Block a user