
8 Dec
2009
8 Dec
'09
11:07 p.m.
AMDG Frédéric Bron wrote:
It is (almost) possible to check the exact return type.
template<class Expected, class Actual> boost::is_same<Expected, Actual> test(const Actual&);
Does not work with void return operator:
Of course it doesn't work as is. It would have to be added as an additional check after you already know that the return type is non-void. In Christ, Steven Watanabe