Opened 9 years ago

#9052 new Feature Requests

Support of Stateful Allocators in spirit

Reported by: evilissimo@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.54.0 Severity: Optimization
Keywords: Cc:

Description

Currently it's not possible to avoid allocations from happening with the standard allocators of the used standard library.

That makes it quite impossible to manage the memory for the parser.

Some use case examples:

  • Writing a library in C++ with a C interface allowing the user to pass 'malloc' and 'free' replacements.
  • Writing a program that uses a pool memory allocator

I know that this probably won't be too high on your todo list, however it'd be great to have.

Attachments (1)

allocator_support.patch (2.9 KB ) - added by evilissimo@… 9 years ago.
A potential solution to support allocators on rule and grammar

Download all attachments as: .zip

Change History (1)

by evilissimo@…, 9 years ago

Attachment: allocator_support.patch added

A potential solution to support allocators on rule and grammar

Note: See TracTickets for help on using tickets.