File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131#ifndef BOOST_ARRAY_HPP
3232#define BOOST_ARRAY_HPP
3333
34- #include < boost/detail/workaround.hpp>
34+ #include < boost/config.hpp>
35+ #include < boost/config/workaround.hpp>
3536
3637#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
3738# pragma warning(push)
5051#include < boost/throw_exception.hpp>
5152#include < algorithm>
5253
53- // FIXES for broken compilers
54- #include < boost/config.hpp>
55-
5654
5755namespace boost {
5856
@@ -117,7 +115,10 @@ namespace boost {
117115 return BOOST_ASSERT_MSG ( i < N, " out of range" ), elems[i];
118116 }
119117
120- BOOST_CONSTEXPR const_reference operator [](size_type i) const
118+ #if !BOOST_WORKAROUND(BOOST_GCC, < 50000)
119+ BOOST_CONSTEXPR
120+ #endif
121+ const_reference operator [](size_type i) const
121122 {
122123 return BOOST_ASSERT_MSG ( i < N, " out of range" ), elems[i];
123124 }
You can’t perform that action at this time.
0 commit comments