1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0032430: Coding Rules - eliminate CLang warning -Wdeprecated-copy

Introduced Standard_DELETE alias to C++11 feature "=delete".
This commit is contained in:
kgv
2021-06-11 14:52:37 +03:00
committed by bugmaster
parent 42633ff642
commit 1790e9f28c
6 changed files with 22 additions and 10 deletions

View File

@@ -37,6 +37,18 @@
#define Standard_OVERRIDE
#endif
//! @def Standard_DELETE
//! Alias for C++11 keyword "=delete" marking methods to be deleted.
#if defined(__cplusplus) && (__cplusplus >= 201100L)
// part of C++11 standard
#define Standard_DELETE =delete
#elif defined(_MSC_VER) && (_MSC_VER >= 1800)
// implemented since VS2013
#define Standard_DELETE =delete
#else
#define Standard_DELETE
#endif
//! @def Standard_FALLTHROUGH
//! Should be used in a switch statement immediately before a case label,
//! if code associated with the previous case label may fall through to that