Boost C++ Libraries: Ticket #2928: Some relational operators are not listed in synopsis https://svn.boost.org/trac10/ticket/2928 <p> Direct comparison between optional&lt;T&gt; and T has been supported since Boost 1.34. But such operators are not listed in synopsis in the latest docs. </p> <p> They were added to optional.html in <a class="changeset" href="https://svn.boost.org/trac10/changeset/37126" title="none_t/none reimplemented to avoid precompiled header issues (thanks ...">r37126</a>. But they seems to have been missed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/43247" title="optional docs fixes">r43247</a>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2928 Trac 1.4.3 Steven Watanabe Sat, 16 Feb 2013 00:53:25 GMT <link>https://svn.boost.org/trac10/ticket/2928#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2928#comment:1</guid> <description> <p> I'm not very happy about the current implementation of these operators: </p> <pre class="wiki">bool operator&lt;(optional&lt;T&gt; const&amp;, T const&amp;); </pre><p> Notes: calls T::T(const T&amp;) </p> <p> relational operators really have no need to make copies. </p> <p> Also, it fails to match if T is a reference. </p> <p> I don't want to write documentation for these functions until these detail are pinned down (either determining that this behavior is, in fact, correct, or fixing it.) </p> </description> <category>Ticket</category> </item> </channel> </rss>