[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vect

From: Hans Åberg
Subject: Re: [PATCH 5/9] build: reject C++ compilers that don't support std::vector::data
Date: Tue, 17 Aug 2021 10:35:46 +0200

> On 17 Aug 2021, at 08:49, Akim Demaille <> wrote:
> Hi Hans,
>> Le 13 août 2021 à 09:52, Hans Åberg <> a écrit :
>>> On 13 Aug 2021, at 08:11, Akim Demaille <> wrote:
>>>> Le 12 août 2021 à 10:40, Hans Åberg <> a écrit :
>>>> The member 'data' was introduced in C++11.
>>> That page is exactly the one I looked at first to see that it's C++98, not 
>>> C++11.  Read the bottom of 
>>> <>.
>> It is not in the C++98 ISO+IEC+14882-1998 standard (the PDF). In the C++11 
>> n3242 draft, in sec. Class template vector overview, class vector 
>> has between sections "element access" and "modifiers" a section "data 
>> access" with
>> T* data() noexcept; const
>> T* data() const noexcept
>> and it is also in a C++ draft standard I made from sources in 2015.
>> So GCC is right on this one, and 4.2 is from 2007-2008, before C++11. You 
>> might try a later version with the -std=c++98 option to see what it does.
> You need to read my answer, and the page it pointed you to.

But that is a proposal from 2004, does it mean it should be considered a part 
of C++98? —It would seem that once a standard has been official, it does not 
change. There is alos the C++03, but also that is earlier than that proposal.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]