3 ContextClass
*this_type
= nullptr;
4 ContextClass() { this_type
= this; }
7 return member
; // break in function in class.
10 template <class T
> T
templateFunc(T x
) const {
11 return member
; // break in templated function in class.
15 template <typename TC
> struct TemplatedContextClass
{
17 TemplatedContextClass
<TC
> *this_type
= nullptr;
18 TemplatedContextClass() { this_type
= this; }
21 return member
; // break in function in templated class.
24 template <class T
> T
templateFunc(T x
) const {
25 return member
; // break in templated function in templated class.
31 TemplatedContextClass
<int> t
;
32 return c
.func() + c
.templateFunc(1) + t
.func() + t
.templateFunc(1);