Boost logo

Boost :

Subject: Re: [boost] [array] failures in c++11 mode
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2013-02-14 10:35:31


On Feb 14, 2013, at 4:30 AM, Tim Blechmann <tim_at_[hidden]> wrote:

> hi,
>
> r82834 seems to break compilation of boost.array when compiled in c++11
> mode:
>
> ../../../boost/array.hpp:131:9: error: body of constexpr function
> ‘constexpr const T& boost::array<T, N>::operator[](boost::array<T,
> N>::size_type) const [with T =
> boost::heap::detail::skew_heap_node<q_tester, false>*; long unsigned int
> N = 2ul; boost::array<T, N>::const_reference =
> boost::heap::detail::skew_heap_node<q_tester, false>* const&;
> boost::array<T, N>::size_type = long unsigned int]’ not a return-statement
>
> the boost.heap testsuite exposes this failure:
> http://www.boost.org/development/tests/trunk/developer/output/Sandia-gcc-4-7-1-c++11-boost-bin-v2-libs-heap-test-skew_heap_test-test-gcc-4-7-1_c++11-debug-threading-multi.html

Interesting.
Which compiler are you using?

All the heap tests (and the array tests, which include some constexpr tests) pass locally for me (in c++11 mode) - I'm using clang, btw.

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk