------- Comment #12 from jwakely dot gcc at gmail dot com 2009-04-07 15:40 ------- See what I wrote at http://gcc.gnu.org/ml/libstdc++/2008-09/msg00124.html under point 3)
You want this: typename std::result_of< decltype(&traits<T>::restore) (S*) >::type Paolo, let's close this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39676