File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 6691
6691
6692
6692
\begin {codeblock }
6693
6693
namespace std {
6694
- template<class T> struct owner_less;
6694
+ template<class T = void > struct owner_less;
6695
6695
6696
6696
template<class T> struct owner_less<shared_ptr<T> > {
6697
6697
typedef bool result_type;
6710
6710
bool operator()(shared_ptr<T> const&, weak_ptr<T> const&) const;
6711
6711
bool operator()(weak_ptr<T> const&, shared_ptr<T> const&) const;
6712
6712
};
6713
+
6714
+ template<> struct owner_less<void> {
6715
+ template<class T, class U>
6716
+ bool operator()(shared_ptr<T> const&, shared_ptr<U> const&) const;
6717
+ template<class T, class U>
6718
+ bool operator()(shared_ptr<T> const&, weak_ptr<U> const&) const;
6719
+ template<class T, class U>
6720
+ bool operator()(weak_ptr<T> const&, shared_ptr<U> const&) const;
6721
+ template<class T, class U>
6722
+ bool operator()(weak_ptr<T> const&, weak_ptr<U> const&) const;
6723
+
6724
+ typedef unspecified is_transparent;
6725
+ };
6713
6726
}
6714
6727
\end {codeblock }
6715
6728
You can’t perform that action at this time.
0 commit comments