Boost logo

Boost Users :

Subject: Re: [Boost-users] [mpi] many undefined references to serialize<boost::mpi::detail::mpi_datatype_oarchive>
From: Oswin Krause (Oswin.Krause_at_[hidden])
Date: 2012-09-11 14:03:20


Hi Brian,

Does this help?

http://www.boost.org/doc/libs/1_51_0/libs/serialization/doc/serialization.html#derivedpointers

Greetings,
Oswin

On 2012-09-11 19:27, Brian Budge wrote:
> On Tue, Sep 11, 2012 at 10:11 AM, Oswin Krause
> <Oswin.Krause_at_[hidden]> wrote:
>> Hi,
>>
>> Is there a reason you ar doing it this way?
>> Because your question now boils down to: "Why does it hurt, when I
>> turn
>> automatic template generation off?".
>>
>> As an user of an serializable class, I would never expect that my
>> choice of
>> archive would impact whether my code compiles or not. Especially
>> since the
>> interface states that i can (through template<class Archive>).
>> Instead I
>> would assume that i could safely add my own archives without
>> checking weird
>> macros in theird party libraries.
>>
>> Greetings,
>> Oswin
>
> Hi Oswin -
>
> We are serializing an abstract hierarchy. Because we pass only the
> base pointer type(s) into the serialization code, we need to
> explicitly instantiate the functions so that the functions are
> available at runtime. I could be missing something, but that's the
> reasoning. If there's a better way, I'm definitely up for that.
>
> Thanks,
> Brian
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net