[cfe-commits] Uninformative C++98 error when calling a ctor taking const&, where the type passed in has a deleted copy-ctor

Jeff Walden jwalden+clang at mit.edu
Mon Apr 16 11:36:49 PDT 2012


On 04/14/2012 06:13 AM, Chandler Carruth wrote:
> While I sympathize with the desire to pick up delete and other C++11 features, I'm hesitant to extend logic in Clang far in the pursuit of using 'deleted' as a C++98 extension -- I'd rather focus on moving people to C++11 whole-sale.
> 
> Would it be possible to guard the use of the 'deleted' keyword on C++11 as a whole rather than on the extension alone?

Fair.  I knew there was some reason why we were not using -std=c++0x (really -std=gnu++0x) directly.  (Mozilla as a whole uses it, SpiderMonkey as a specific component doesn't.)  But nobody seems to know or remember what it was when I just asked.  I'll investigate this to see whether this is more feasible than I thought, then post back after getting those results.

Jeff



More information about the cfe-commits mailing list