[cfe-dev] [libc++] c++14 return type deduction usage should be limited

Howard Hinnant hhinnant at apple.com
Tue Aug 13 09:01:14 PDT 2013


On Aug 13, 2013, at 11:11 AM, Zhihao Yuan <lichray at gmail.com> wrote:

> On Tue, Aug 13, 2013 at 11:04 AM, Howard Hinnant <hhinnant at apple.com> wrote:
>> I've been looking for an example that detects the lack of explicit return type on the functors and haven't found one yet.  Do you have one?  If it isn't detectable, then what is there is ok under the "as if" rule.
> 
> The file I attached before.  Let me attach it here again.

This test passes for me with:

totclang++ -std=c++1y -stdlib=libc++

Howard




More information about the cfe-dev mailing list