Talk:Constrained genericity: Difference between revisions

(C++ example, concepts and C++0x)
 
Line 2:
 
Are there any C++ compilers which implemented the feature, and which haven't deprecated their use? My understanding of the C++ standardizations process is that many of the features that get included in the planning stages are already available as compiler extension. In that case, I think [[Template:Works with]] might be an appropriate solution, with a note that it's a compiler extension. --[[User:Short Circuit|Michael Mol]] 16:29, 27 August 2010 (UTC)
 
: There was ConceptGCC (now in a branch of the official gcc archive, but no longer actively developed, and not part of any official gcc release). I just tested with the latest conceptgcc I have installed: gcc-Version 4.3.0 20070330 (experimental) (Indiana University ConceptGCC -- BoostCon Edition) and found that it didn't yet implement all of the used features: std::Movable wasn't provided (but replacing with pure typename works), and some logic for std::Derived is missing: calling t.munch() doesn't work (there's a mistake in the code on the page in that it uses "->" instead of ".", but fixing that doesn't help). I don't know how much of the missing functionality was implemented later. As far as I know, there's no current compiler which implements concepts.
: One possibility would be to park the code on the discussion page (or maybe I park it in a subpage of my user page) until (hopefully) concepts get reintroduced to a later version of the standard.
: When I added the entry, I was completely convinced that concepts would come (after all, they had been a highlighted feature of the next C++ version, and a lot of other features were defined in terms of concepts at that time). --[[User:Ce|Ce]] 20:22, 27 August 2010 (UTC)
973

edits