|
Boost Users : |
Subject: Re: [Boost-users] Help with custom classes PLEASE!!
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-02-01 22:07:26
AMDG
Daniel Veneros wrote:
> And what about the class?
>
Oh, I see.
> class Employee {
> private:
> string name;
> int age;
>
> public:
> Employee();
> ~Employee();
> };
The string inside the class needs to use an allocator too.
Everything that allocates memory which you store in
shared memory needs to use the right allocator.
In Christ,
Steven Watanabe
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