In following code:
template struct TD; decltype(auto) getMyConst() { const int val = 10; return (const int)val; // const int cast is no