On Tue, Mar 15, 2016 at 8:58 PM, Phil Bouchard
Yes you're right. I need to make my references const.
[snip]
Thanks for the clarifications.
No problem. Remember the goal isn't to provide convoluted interfaces
that are strange to people who are used to a simpler convention
established in the C++ standard library (or Boost, or any other
library that supports C++ allocator concepts).
The Allocator class template in the example you have is a valid C++
stateful allocator. Observe how it is used with existing C++ standard
library facilities that are allocator aware:
int c1 = 0, c2 = 0;
vector