Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2005-08-16 09:29:30


Bugs item #1260961, was opened at 2005-08-16 20:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1260961&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: serialization
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Serge Sivkov (s-sivkov)
Assigned to: Robert Ramey (ramey)
Summary: VC7.1 operator << doesn't work for non-const objects

Initial Comment:
The manual says operators & and << are equals. In fact,
operator << doesn't work for non-const objects, but
operator & 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<x>'
        with
        [
            x=false
        ]
---
but for operator & (i.e. from
    oa << g;
to
    oa & g;
)
all works perfectly.
----------------------------------------------------------------------
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1260961&group_id=7586
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk