This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/39676] std::result_of doesn't work



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]