I have a the following snippet of code
string const& symbol::at(int index) const {
assert(index<symbol_data.vector::size());
return symbol_data.vector::at(index);
}
This does not compile successfully, instead, I get complaints about
error: ‘template<class _Tp, class _Alloc> class std::vector’ used without template parameters
Now, I think this has something to do with the fact that I'm returning a const reference to an object that this function is treating as const.
How can I modify my two lines of code to satisfy const correctness?