#pragma once namespace ns { inline namespace v1 { template struct Base { void f(); }; } template struct Derived : Base { void g() { this->f(); } }; }