Subject: Re: [boost] [iterator][type_traits] A test is failing with gcc in c++03 mode
From: Edward Diener (eldiener_at_[hidden])
Date: 2016-12-17 12:12:09
On 12/17/2016 11:32 AM, Nathan Wilson wrote:
> Hi Edward,
> Hmm, I can take a look later today. Which version of gcc is this with?
I am using mingw-64/gcc-6.2 on Windows. I will try it on Linux soon. If
I use -std=gnu++03 instead of -std=c++03, it works without errors.
> On Dec 16, 2016 10:03 PM, "Edward Diener" <eldiener_at_[hidden]> wrote:
>> The zip_iterator_test_std_pair is failing with gcc in c++-03 mode. The
>> problem reduces viqa Boost type traits to the fact that in gcc c++03 mode
>> the expression:
>> __is_abstract(std::pair<int&, std::string&>)
>> where __is_abstract is a compiler intrinsic, gives an error of:
>> error: forming reference to reference type 'std::__cxx11::basic_string<ch
>> pair(const _T1& __a, const _T2& __b)
>> Is this a valid error according to the C++ 2003 standard ?
>> The test works in c++11 or c++14 mode.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk