Boost logo

Boost Users :

From: Andrea Denzler (andrea_at_[hidden])
Date: 2008-08-09 22:23:46


For a full portability of strings I would convert them into UTF-8, this
solves any endianess issue and different local code pages issue. Same for
file format.

-----Messaggio originale-----
Da: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] Per conto di troy d. straszheim
Inviato: sabato 9 agosto 2008 19.56
A: boost-users_at_[hidden]
Oggetto: [Boost-users] serializable any

Hey,

Here's an autoregistering serializable any, I think it qualifies as hacky
and suboptimal. Of course the typeid(T).name() strings aren't portable,
and the implementation gets a little intimate with the
mechanics of registration, but it works... You could make this less
intrusive, I suppose, but without the venerable

   #define private public

technique (still one of my all time favorite hacks)
I don't think you're going to get it completely nonintrusive.

-t
...


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