I have a ton of functions that are defined as something like:
template<typename T>
void myFunction1(vector<T>& vin);
The point being, I input an STL vector and do some work.
I have recently needed to change the default allocator to a customer allocator. This seems to break every function unless I change the definitions to:
template<typename T, typename Alloc>
void myFunction1(vector<T,Alloc>& vin);
To make it more complicated, I will not be using the overloaded allocator in all cases..
Does this mean I have to rewrite EVERY function with two definitions, one with the template for the allocator and the other definition without the allocator? I really hope this isn't the answer...