Ignore:
Timestamp:
Apr 23, 2021, 8:51:43 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
c18a79
Parents:
2b88eb
git-author:
Frederik Heber <frederik.heber@…> (11/25/20 00:09:13)
git-committer:
Frederik Heber <frederik.heber@…> (04/23/21 20:51:43)
Message:

Observable_protector requires noexcept(false).

  • otherwise we cannot use the CircleDetection unit test anymore as C++11 default behavior is to terminate if an exception is thrown during a destructor (here, Observable_protector, i.e. OBSERVE; going out of scope). The unit test expects an AssertionFailure which we then no longer obtain but the whole test terminates. Therefore we set to noexcept(false) and allow exceptions to escape.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/CodePatterns/src/Observer/Observable.cpp

    r2b88eb r77c4a0  
    127127 * \param *protege Observable to be protected.
    128128 */
    129 Observable::_Observable_protector::~_Observable_protector()
     129Observable::_Observable_protector::~_Observable_protector() noexcept(false)
    130130{
    131131  finish_observer_internal(protege);
Note: See TracChangeset for help on using the changeset viewer.