Hi,
I have a template map and want to use the iterator. But the compile
failed. Is there any restriction on the (const) iterator for template
type?
Sample code:
template <typename T>
void Foo(const std::map<std::string, std::vector<T &data) {
const std::map<std::string, std::vector<T::const_iterator it =
data.begin();
// ...
}
Thanks,
xu@la