C++ Frontend Tales

All | Boost | General | Loki
« It's time to explain... | Main | Boost patches, C++... »

20060202 Thursday February 02, 2006

Boost serialization

Almost all serialization tests are failed now. Some tests can't be linked and the other ones linked successfully but produce incorrect results. Link errors related to stlport. It looks like stlport should be linked as static library for this tests. I will check it. More complicated error breaks other tests. Test case below shows this bug:

% cat test.cc
struct S
{
    template 
    void operator+(T & t)
    {
        const_cast(t);
    }
};

void foo()
{
    int array[] = {777};
    S s;
    s + array;
}

% CC -c test.cc
"test.cc", line 14: Error: The operation "S + int*" is illegal.

Permalink Comments [1]
Trackback URL: http://blogs.sun.com/sga/entry/template
Comments:

Does BOOST use non-standard extensions to C++? Is it most often compiled with g++? Are there idioms used that could be changed to be more standard conforming? I don't really know, I'm just asking. It would be good to give feedback to the BOOST developers if there are things they could do to make BOOST more portable.

Posted by Chris Quenelle on February 05, 2006 at 08:32 AM MSK #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed