diff --git a/tests/Basic/Basic.h b/tests/Basic/Basic.h index 78ecdcde..95a7f34a 100644 --- a/tests/Basic/Basic.h +++ b/tests/Basic/Basic.h @@ -153,3 +153,13 @@ struct DLL_API DefaultParameters void Bar() const; void Bar(); }; + +// The Curiously Recurring Template Pattern (CRTP) +template +class Base +{ + // methods within Base can use template to access members of Derived +}; +class Derived : public Base +{ +};