Boost C++ Libraries: Ticket #461: VC7.1 operator << doesn't work for non-const objects https://svn.boost.org/trac10/ticket/461 <pre class="wiki">The manual says operators &amp; and &lt;&lt; are equals. In fact, operator &lt;&lt; doesn't work for non-const objects, but operator &amp; works. Yere is simple example: if i change string const gps_position g(35, 59, 24.567f); to gps_position g(35, 59, 24.567f); (function main() in demo.cpp) then i will see compilation error: --- c:\Boost\include\boost-1_33\boost\archive\detail\oserializer.hpp(566): error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE&lt;x&gt;' with [ x=false ] --- but for operator &amp; (i.e. from oa &lt;&lt; g; to oa &amp; g; ) all works perfectly. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/461 Trac 1.4.3 nobody Tue, 16 Aug 2005 15:34:22 GMT <link>https://svn.boost.org/trac10/ticket/461#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/461#comment:1</guid> <description> <pre class="wiki">Logged In: NO This is intentional - read the manual regarding tracking and the rationale section which describes this behavior Robert Ramey </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Thu, 20 Oct 2005 04:56:40 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/461#comment:2 https://svn.boost.org/trac10/ticket/461#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=396141 This is explained in the "Rationale" section of the manual. </pre> Ticket