Changeset 77c4a0 for ThirdParty/CodePatterns
- Timestamp:
- Apr 23, 2021, 8:51:43 PM (5 years ago)
- 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)
- Location:
- ThirdParty/CodePatterns/src
- Files:
-
- 2 edited
-
CodePatterns/Observer/Observable.hpp (modified) (1 diff)
-
Observer/Observable.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/CodePatterns/src/CodePatterns/Observer/Observable.hpp
r2b88eb r77c4a0 186 186 _Observable_protector(Observable *); 187 187 _Observable_protector(const _Observable_protector&); 188 ~_Observable_protector(); 188 /* 189 * Since C++11 exceptions thrown during a destructor will always result 190 * in terminate. Here, however, we throw an AssertionFailure in case 191 * we detec a circle in the observation DAG. For the unit test to be 192 * useful, we need the exception to be handled normally (and not 193 * terminate). Hence, we set the behavior to allowing exceptions here. 194 */ 195 ~_Observable_protector() noexcept(false); 189 196 private: 190 197 Observable *protege; -
ThirdParty/CodePatterns/src/Observer/Observable.cpp
r2b88eb r77c4a0 127 127 * \param *protege Observable to be protected. 128 128 */ 129 Observable::_Observable_protector::~_Observable_protector() 129 Observable::_Observable_protector::~_Observable_protector() noexcept(false) 130 130 { 131 131 finish_observer_internal(protege);
Note:
See TracChangeset
for help on using the changeset viewer.
