I am pretty sure the problem is that
STLAdaptorallocator, not a
That’s correct as far as it goes.
scoped_allocator_adaptor is going to pass down what it has, not some other type it doesn’t know about.
scoped_allocator_adaptor will use
uses_allocator to determine if the type uses the allocator. That trait defaults to looking at whether the type defines a member type
allocator_type to which the allocator can be converted.
But then I can’t get it to work with an
std::stringeither, but I think that has to do with the
STLAdaptorhaving different types between the
std::string(is this where
rebindcomes into play?
STLAdaptor doesn’t meet the allocator requirements.
CLICK HERE to find out more related problems solutions.