Skip to content

Instantly share code, notes, and snippets.

@r2p2
Created July 15, 2010 18:36
Show Gist options
  • Save r2p2/477326 to your computer and use it in GitHub Desktop.
Save r2p2/477326 to your computer and use it in GitHub Desktop.
#include <vector>
template <class T>
class Foo
{
public:
void bar()
{
typename std::vector<T>::const_iterator it;
}
};
int main()
{
Foo<int> f;
f.bar();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment