I have some class C with const and non-const getters for some generic type Node:
C
const
Node
template
Let the compiler deduce the return type (as of C++14):
template decltype(auto) AliasGetNode(CType& cobject) { return cobject.getNode(0); }