Skip to content

Commit

Permalink
Address C++17 redeclaration of constexpr static
Browse files Browse the repository at this point in the history
  • Loading branch information
glenfe committed Apr 11, 2024
1 parent 31117ef commit 04cc766
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/boost/core/span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,10 @@ class span {
detail::span_store<T, E> s_;
};

#if defined(BOOST_NO_CXX17_INLINE_VARIABLES)
template<class T, std::size_t E>
constexpr std::size_t span<T, E>::extent;
#endif

#ifdef __cpp_deduction_guides
template<class I, class L>
Expand Down

0 comments on commit 04cc766

Please sign in to comment.