RE: [Boost-Users] simplest pool_alloc example does not work on VC 6
-----Original Message----- From: Ben Hutchings [mailto:ben.hutchings@businesswebsoftware.com]
scleary@jerviswebb.com wrote:
Sorry, Boost.Pool does not currently support MSVC, due to that compiler's extreme lack of template support. <snip>
For VC++ 6, all that should be needed is a _Charalloc function (instead of struct rebind) and a change to the type of deallocate's first parameter (to void *, which actually makes more sense).
The _Charalloc function requires each allocator to be able to allocate an arbitrary amount of memory. This goes against the entire design of Boost.Pool, and would be non-trivial (to say the least) to implement.
The VC++ 7 compiler is good enough to support standard allocators and the library does use them. With the addition of a variable name and semi-colon, the given example can be compiled with this version.
Glad to hear it. Too bad it's not released yet. -Steve
scleary@jerviswebb.com writes:
The VC++ 7 compiler is good enough to support standard allocators and the library does use them. With the addition of a variable name and semi-colon, the given example can be compiled with this version.
Glad to hear it. Too bad it's not released yet.
Huh? VC7's been out "forever". -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
sclearyï¼ jerviswebb.com