]> OCCT Git - occt.git/commit
0032917: Coding Rules - eliminate MSVS warning C26440 on VS2019/C++20 (If your functi...
authorddzama <ddzama@opencascade.com>
Thu, 31 Mar 2022 06:21:08 +0000 (09:21 +0300)
committersmoskvin <smoskvin@opencascade.com>
Fri, 29 Apr 2022 15:09:00 +0000 (18:09 +0300)
commit7b3f255f237c406cd56cd3b7fb4125c9ec76b34d
tree47a9d4e466c2e3c524abd1df8866cb310d6076d0
parent4e1b5fcbf0cd7ec736e4d9c0d5683dd013c752a1
0032917: Coding Rules - eliminate MSVS warning C26440 on VS2019/C++20 (If your function may not throw, declare it noexcept)

Microsoft Visual Studio Professional 2019
Version 16.11.11
std=c++20

Get rid of warning C26440: "If your function may not throw, declare it noexcept"

"If code is not supposed to cause any exceptions,
it should be marked as such by using the 'noexcept' specifier.
This would help to simplify error handling on the client code side,
as well as enable compiler to do additional optimizations."
src/NCollection/NCollection_AliasedArray.hxx
src/Poly/Poly_ArrayOfNodes.hxx
src/Poly/Poly_ArrayOfUVNodes.hxx
src/Standard/Standard_Handle.hxx
src/TCollection/TCollection_AsciiString.hxx
src/TCollection/TCollection_ExtendedString.hxx
src/TopLoc/TopLoc_SListOfItemLocation.hxx