Documentation about C++ Concepts
Mon Dec 21 07:57:00 GMT 2015
> Le 21 déc. 2015 à 01:55, Jonathan Wakely <firstname.lastname@example.org> a écrit :
> On 20 December 2015 at 19:13, Akim Demaille <email@example.com> wrote:
>> I’m looking for a #if guard to enable/disable code using concepts-lite.
> As required by the Concepts TS, the compiler defines __cpp_concepts
> when it supports concepts.
>> Also, the documentation about concepts seems to be about the previous attempts at concepts.
>> And actually, I did not find the documentation for c++1z, nor even -std=c++14.
Ah! Thanks. But then, I would suggest that this is misleading: the sections "Options Controlling C Dialect » and "Options Controlling C++ Dialect" are not as symmetrical as their names would imply. Maybe the C++ section could at least have an item about -std that points to the C documentation.
My point here was that this page documents C++ up to C++11, and points to "Options Controlling C++ Dialect" for more information about C++ standards, whereas you just showed that it’s the page about C dialects that should be pointed to, and that there are many more options that what this section reports.
>> Finally, one would expect to see documentation about -std in "Options Controlling C++ Dialect", since the corresponding about C documents -std for C.
> That's the documentation about -std in general, not -std for C. It
> says "The following options control the dialect of C (or languages
> derived from C, such as C++, …)"
Yes, thanks for pointing this out. But I think that this is unfortunate. Maybe -std deserves a section on its own. I guess that gccgo, gnat and other also use this -std option, so even if the main documentation for GCC does not cover these languages, it would make sense to detach it from C. Say next to -x.
This is just a suggestion, forget about it if it sounds stupid.
More information about the Gcc-help