Boost logo

Boost Users :

Subject: Re: [Boost-users] A doubt in Boost Format
From: Gokulakannan Somasundaram (gokul007_at_[hidden])
Date: 2011-06-14 13:57:09


Can someone please help me on this? We have a memory pool based approach and
we want all the allocations to be redirected to the pool. But there are some
std::vectors inside boost::format object. Can someone suggest me a way to
deal with this?

Thanks,
Gokul.

On Sat, Jun 11, 2011 at 1:55 PM, Gokulakannan Somasundaram <
gokul007_at_[hidden]> wrote:

> Hi,
> We are using Boost format in our project. We want to replace the normal
> allocator with a special allocator and we don't want any allocation be made
> with normal new. I was looking at the Boost fusion reference.
> format_class.hpp
>
> The class accepts a allocator and indeed uses it to instantiate the
> std::string inside. But there are two vectors inside -
>
> std::vector<format_item_t> items_; // each '%..' directive leads to a format_item
>
> std::vector<bool> bound_; // stores which arguments were bound. size() == 0 || num_args
>
> I am seeing that the vectors are not using the allocators. Is this the
> intended behavior? Is it right, to try to make an application not to use the
> normal new/delete completely?
>
> Thanks,
> Gokul.
>



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