This is my code
#include <vector>
template <typename T, template<typename> class C = std::vector >
struct FooBar
{
/*codez*/
};
template<typename T>
struct Global{};
int main()
{
struct Local{};
FooBar<Local,Global> k;
}
This is the error that I get
template argument for ‘template<class T, template<class> class C> struct FooBar’ uses local type ‘main()::Local’
Which part of the standard says that this is wrong? I am using gcc 4.5.1. How can make this code work?