Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--enable-thread-safe-observer-pattern works with --enable-std-pointers #549

Merged
merged 3 commits into from Oct 12, 2018

Conversation

klausspanderen
Copy link
Contributor

closes #546

namespace ext {

#if defined(QL_USE_STD_SHARED_PTR)
using std::enable_shared_from_this;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this (and the inclusion of <boost/enable_shared_from_this.hpp> above) to ql/shared_ptr.hpp where the other related classes are added to namespace ext.

@lballabio lballabio added this to the 1.15 release milestone Oct 3, 2018
@@ -264,14 +264,15 @@ namespace QuantLib {
#include <boost/enable_shared_from_this.hpp>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should go in ql/shared_ptr.hpp, too? (If the using statement there works using the boost classes, instead, that means we can remove this here.)

@lballabio lballabio merged commit 9dd4c1e into lballabio:master Oct 12, 2018
lballabio added a commit that referenced this pull request Oct 12, 2018
@klausspanderen klausspanderen deleted the observer-c++11 branch October 16, 2018 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--enable-thread-safe-observer-pattern doesn't work with --enable-std-pointers
2 participants