SomeDerivedClass< TEMPLATE_PARAMETER > Class Template Reference

Some templated derived class. More...

+ Inheritance diagram for SomeDerivedClass< TEMPLATE_PARAMETER >:

Public Member Functions

 SomeDerivedClass ()
 
virtual ~SomeDerivedClass ()
 
void output_template_parameter ()
 Some member function. More...
 
- Public Member Functions inherited from TemplatedBaseClass< TEMPLATE_PARAMETER >
 TemplatedBaseClass ()
 Empty constructor. More...
 
 ~TemplatedBaseClass ()
 Empty virtual constructor. More...
 
void say_hello_world ()
 Some member function. More...
 

Detailed Description

template<unsigned TEMPLATE_PARAMETER>
class SomeDerivedClass< TEMPLATE_PARAMETER >

Some templated derived class.

Constructor & Destructor Documentation

◆ SomeDerivedClass()

template<unsigned TEMPLATE_PARAMETER>
SomeDerivedClass< TEMPLATE_PARAMETER >::SomeDerivedClass ( )
inline
65 {};

◆ ~SomeDerivedClass()

template<unsigned TEMPLATE_PARAMETER>
virtual SomeDerivedClass< TEMPLATE_PARAMETER >::~SomeDerivedClass ( )
inlinevirtual
68 {};

Member Function Documentation

◆ output_template_parameter()

template<unsigned TEMPLATE_PARAMETER>
void SomeDerivedClass< TEMPLATE_PARAMETER >::output_template_parameter ( )
inline

Some member function.

72  {
73  std::cout << "My template parameter is: "
74  << TEMPLATE_PARAMETER << std::endl;
75 
76  // Now call the function in the base class
77 
78 #ifdef USE_BROKEN_VERSION
79 
80  // This is illegal according to the C++ standard
82 
83 #else
84 
85  // This is stupid but in line with the C++ standard
86  this->say_hello_world();
87 
88 #endif
89 
90  }
void say_hello_world()
Some member function.
Definition: broken_this_demo.cc:46

References TemplatedBaseClass< TEMPLATE_PARAMETER >::say_hello_world().


The documentation for this class was generated from the following file: