E2436 Default type for template template argument 'arg' does not name a primary template class (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

If a template template parameter is to have a default type, that type must either be a generic template class name, or another template template parameter.

template<class T>
class foo;
template<template<class T> class U = foo>
class bar;// OK: "foo" is a qualifying primary template
template<template<class T> class U = int>
class baz;// error: "int" is not a template class