Skip to content

Commit 9168e41

Browse files
committed
Merge 2015-10 LWG Motion 9
2 parents 0c6bddc + f016437 commit 9168e41

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

source/utilities.tex

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6691,7 +6691,7 @@
66916691

66926692
\begin{codeblock}
66936693
namespace std {
6694-
template<class T> struct owner_less;
6694+
template<class T = void> struct owner_less;
66956695

66966696
template<class T> struct owner_less<shared_ptr<T> > {
66976697
typedef bool result_type;
@@ -6710,6 +6710,19 @@
67106710
bool operator()(shared_ptr<T> const&, weak_ptr<T> const&) const;
67116711
bool operator()(weak_ptr<T> const&, shared_ptr<T> const&) const;
67126712
};
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+
};
67136726
}
67146727
\end{codeblock}
67156728

0 commit comments

Comments
 (0)