Hi! Hope everyone is anxious for the upcoming weekend. I have a quick question regarding templates before the weekend takes over. They are a new topic for me so there is a lack of familiarity. I'm sure the gurus on the forums can assist.
Scenario:
I would like to create a template that takes two different types. One of the types should be a class type that is predefined (a type of histogram for example) and the other is just a type of vector (i.e double, unsigned, etc):
STL containers have a default template parameter for memory management called an allocator. You can just ignore the fact that it shows up in the error message. The error message that you have is telling you what types are passed to the function when you call it. If you compare those types to the function's signature, you'll see that the last two arguments were VecType (vector<double>) not just doubles.
Consider using something like typename VecType::value_type for the contained type (double).