On 20 Sep 2013 at 17:22, Stephan T. Lavavej wrote:
[Niall Douglas]
I fear the cause may be the same brittle N3276 decltype VS2013 implementation I found breaking my variadic template overloads in AFIO. The main problem I found is that VS2013's decltype is too quick to generate compile errors when fed an attempt to invoke call on a non-callable.
That sounds like you're trying to use Expression SFINAE, which VC does not yet support in full generality, instead of N3276 decltype, which specifically revolves around the completeness of call expression types.
You're right of course, but it's hard for me to work around VS2013's limitations here without being able to specialise a template for lambda types. Would you know Stephan how to do this on VS2013? I appreciate if it were easy you'd have already fixed the std::result_of<> shipped in the STL, but maybe it's easier than I am thinking? Niall -- Currently unemployed and looking for work. Work Portfolio: http://careers.stackoverflow.com/nialldouglas/