Add deduction guides to shared_ptr and weak_ptr. Fixes #73.

This commit is contained in:
Peter Dimov committed 2020-04-02 00:28:02 +03:00
1 parent 91cd83e5bf
commit 7b9a969215
6 files changed
+89

No files matched your search

+6
View File
@@ -264,6 +264,12 @@ template<class T> void swap(weak_ptr<T> & a, weak_ptr<T> & b) BOOST_SP_NOEXCEPT
a.swap(b);
}
#if defined(__cpp_deduction_guides)
template<class T> weak_ptr( shared_ptr<T> ) -> weak_ptr<T>;
#endif
} // namespace boost
#endif // #ifndef BOOST_SMART_PTR_WEAK_PTR_HPP_INCLUDED