/******************************************************************************/
/* */
/* FILE: february.cpp */
/* */
/* My first template< template > */
/* ============================= */
/* */
/* Compiled and tested with Visual C++ V7.0 */
/* */
/* V1.00 28-FEB-2003 P. Tellenbach http://www.heimetli.ch/ */
/* */
/******************************************************************************/
#include <iostream>
using namespace std ;
class hello
{
public:
hello()
{
cout << "Hello " ;
}
} ;
class world
{
public:
world()
{
cout << "world !" << endl ;
}
} ;
template< typename T >
class Template
{
T t ;
} ;
template< template< class T > class C >
class TemplateTemplate
{
C< hello > h ;
C< world > w ;
} ;
int main()
{
TemplateTemplate< Template > t ;
return 0 ;
}
Update 24. February 2023
This program compiles and runs without any changes.