#include <iostream> struct A { struct B { int value; } b; }; template<typename T> void func(typename T::B b) { std::cout << b.value; } int main(int argc, char * argv[]) { A a = {{5}}; func(a.b); }
func<A>(a.b)
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment