How declare this:
template<typename T>
(T::ABC)& get();
it gives error:
error: expected constructor, destructor, or type conversion before ‘&’ token
How declare this:
template<typename T>
(T::ABC)& get();
it gives error:
error: expected constructor, destructor, or type conversion before ‘&’ token
Use the typename
keyword:
template<typename T>
typename T::ABC& get();
It has to be:
template<typename T>
typename T::ABC& get();
but i tried, which don't works:
template<typename T>
(typename T::ABC)& get();