diff options
author | Friedemann Kleint <[email protected]> | 2023-09-26 09:53:08 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2023-09-27 09:57:09 +0200 |
commit | e98970e69b2495fc1281f5b62702cd9d4b97f248 (patch) | |
tree | 6b026506cf78048fb3c46c64ddeab266e6acff00 /sources/shiboken6/tests/libsample | |
parent | fe057b441024d349e572b40f03baa096a88e1a13 (diff) |
shiboken tests: Remove NOEXCEPT macro
The comment states that this is a left-over from the days
when boost was used.
Pick-to: 6.6 6.5 6.2
Change-Id: Idbd6ed9dce6578def2bddf2ae56fc958b22a0ae8
Reviewed-by: Adrian Herrmann <[email protected]>
Reviewed-by: Shyamnath Premnadh <[email protected]>
Diffstat (limited to 'sources/shiboken6/tests/libsample')
-rw-r--r-- | sources/shiboken6/tests/libsample/photon.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/sources/shiboken6/tests/libsample/photon.h b/sources/shiboken6/tests/libsample/photon.h index cf71a7543..03c45507a 100644 --- a/sources/shiboken6/tests/libsample/photon.h +++ b/sources/shiboken6/tests/libsample/photon.h @@ -81,30 +81,18 @@ LIBSAMPLE_API int callCalculateForValueDuplicatorReference(ValueDuplicator &valu LIBSAMPLE_API int countValueIdentities(const std::list<ValueIdentity> &values); LIBSAMPLE_API int countValueDuplicators(const std::list<TemplateBase<DuplicatorType> > &values); -// This simulates an internal error (SEGV) caused by 'noexcept' in -// boost::intrusive_ptr before support for 'noexcept' was added. The ENTIRE -// code below is needed to trigger the exception; it isn't seen with just a -// 'noexcept' following a declaration. -// -// NOTE: For reasons that should be fairly obvious, this test unfortunately can -// only be "run" when building in C++11 mode. -#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900) -# define PHOTON_NOEXCEPT noexcept -#else -# define PHOTON_NOEXCEPT -#endif class Pointer { public: - Pointer() PHOTON_NOEXCEPT {} + Pointer() noexcept {} explicit Pointer(int *p) : px(p) {} - void reset() PHOTON_NOEXCEPT { Pointer().swap(*this); } + void reset() noexcept { Pointer().swap(*this); } - int *get() const PHOTON_NOEXCEPT { return px; } + int *get() const noexcept { return px; } int &operator*() const { return *px; } - void swap(Pointer &rhs) PHOTON_NOEXCEPT + void swap(Pointer &rhs) noexcept { int *tmp = px; px = rhs.px; |