24 Jul
2017
24 Jul
'17
11:45 p.m.
On 7/24/2017 7:17 PM, Gavin Lambert via Boost wrote:
On 25/07/2017 06:26, Edward Diener wrote:
Thanks, John, I just fell asleep by not realizing you were talking about SFINAE ala enable_if etc. I am surprised that any compiler would operate differently in regard to SFINAE between using the C++03 'return-type some_function(etc.)' form and the C++11 'auto some_function(etc.) -> return-type' form, whether decltype was used or not.
They don't AFAIK, but you can't use the parameter types in an expression until after they are actually declared as parameters, thus requiring the auto -> form.
Thanks ! Makes perfect sense.