mirror of
https://github.com/boostorg/utility.git
synced 2025-08-02 14:24:30 +02:00
Avoid confusion with the spaceship operator, fixes #59
This commit is contained in:
@@ -119,8 +119,8 @@
|
|||||||
also want <code>x > y, x >= y,</code> and <code>x <= y</code>.
|
also want <code>x > y, x >= y,</code> and <code>x <= y</code>.
|
||||||
Moreover, unless your class has really surprising behavior, some of these
|
Moreover, unless your class has really surprising behavior, some of these
|
||||||
related operators can be defined in terms of others (e.g. <code>x >= y
|
related operators can be defined in terms of others (e.g. <code>x >= y
|
||||||
<=> !(x < y)</code>). Replicating this boilerplate for multiple
|
is equivalent to !(x < y)</code>). Replicating this boilerplate for
|
||||||
classes is both tedious and error-prone. The <cite><a href=
|
multiple classes is both tedious and error-prone. The <cite><a href=
|
||||||
"../../boost/operators.hpp">boost/operators.hpp</a></cite> templates help
|
"../../boost/operators.hpp">boost/operators.hpp</a></cite> templates help
|
||||||
by generating operators for you at namespace scope based on other
|
by generating operators for you at namespace scope based on other
|
||||||
operators you've defined in your class.</p>
|
operators you've defined in your class.</p>
|
||||||
|
Reference in New Issue
Block a user