#pragma once #include "a.h" #include "c.h" template > void foo(Fun) {} class Child : public Base { public: void func() { foo([]() {}); } };