$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Sebastian.Karlsson_at_[hidden]
Date: 2008-08-10 08:04:45
> 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
>
Thanks!
That was certainly better than my current solution :)
// Sebastian Karlsson