Boost logo

Boost Users :

From: martin f krafft (madduck_at_[hidden])
Date: 2005-05-13 11:53:09


> > {
> > A a;
> > a.x = 5;
> > ar << &a;
> > }
>
> That should work.
>
> {
> const A *a = new A(5);
> ...
> ar >> new_a
> ..
> assert(*a == *new_a);
> }

I wanted to make it explicit that a goes out of scope after its one
and only serialisation.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net_at_madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: madduck.bogus_at_[hidden]
 
the only real advantage to punk music is
that nobody can whistle it.



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