------- Comment #13 from jwakely dot gcc at gmail dot com 2009-04-07 15:42 ------- (In reply to comment #12) > typename std::result_of< decltype(&traits<T>::restore) (S*) >::type
Oops, that should be S& not S* It's not perfect, but for this case std::result_of works if you get the syntax right :) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39676