Skip to content

Commit bcda144

Browse files
Quuxplusonejwakely
authored andcommitted
[util.smartptr.enab] Fix test of shared ownership in example.
1 parent 2aeea15 commit bcda144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/utilities.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6711,7 +6711,7 @@
67116711
shared_ptr<X> p(new X);
67126712
shared_ptr<X> q = p->shared_from_this();
67136713
assert(p == q);
6714-
assert(!(p < q ) && !(q < p)); // p and q share ownership
6714+
assert(!p.owner_before(q) && !q.owner_before(p)); // p and q share ownership
67156715
}
67166716
\end{codeblock}
67176717
\exitexample

0 commit comments

Comments
 (0)