Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] [Serialization of stl mapwithpointer to POD type]
From: Robert Ramey (ramey_at_[hidden])
Date: 2008-12-31 11:41:44


Denis Gabaidulin wrote:
> Thank u vÅry much.
>
> In regard to const char * type, i use it just a stupid c-strings, caz
> i need maximum performance.
> p.s. In my app keys are immutable.

Then why are you storing them in a file? That's the red flag.

Robert Ramey

>
> On Wed, Dec 31, 2008 at 05:02, Robert Ramey <ramey_at_[hidden]> wrote:
>> Anytime you're serialization a "const" value its a red flag that
>> you might really want to do that. "const" values are
>> initialized when the object is created and should never
>> subsequently change.
>>


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