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 6679
6679
6680
6680
\begin {codeblock }
6681
6681
namespace std {
6682
- template<class T> struct owner_less;
6682
+ template<class T = void > struct owner_less;
6683
6683
6684
6684
template<class T> struct owner_less<shared_ptr<T> > {
6685
6685
typedef bool result_type;
6698
6698
bool operator()(shared_ptr<T> const&, weak_ptr<T> const&) const;
6699
6699
bool operator()(weak_ptr<T> const&, shared_ptr<T> const&) const;
6700
6700
};
6701
+
6702
+ template<> struct owner_less<void> {
6703
+ template<class T, class U>
6704
+ bool operator()(shared_ptr<T> const&, shared_ptr<U> const&) const;
6705
+ template<class T, class U>
6706
+ bool operator()(shared_ptr<T> const&, weak_ptr<U> const&) const;
6707
+ template<class T, class U>
6708
+ bool operator()(weak_ptr<T> const&, shared_ptr<U> const&) const;
6709
+ template<class T, class U>
6710
+ bool operator()(weak_ptr<T> const&, weak_ptr<U> const&) const;
6711
+
6712
+ typedef unspecified is_transparent;
6713
+ };
6701
6714
}
6702
6715
\end {codeblock }
6703
6716
You can’t perform that action at this time.
0 commit comments