Skip to content

Commit

Permalink
Guard section for tuple interface to only use with nonstd::span; fixes
Browse files Browse the repository at this point in the history
…#84 (thanks @simark)

This commit provides a fix that is different from PR #85.
  • Loading branch information
martinmoene committed May 7, 2024
1 parent 50f55c5 commit b892171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/nonstd/span.hpp
Expand Up @@ -1870,7 +1870,7 @@ using span_lite::byte_span;

#endif // span_FEATURE( BYTE_SPAN )

#if span_HAVE( STRUCT_BINDING )
#if !span_USES_STD_SPAN && span_HAVE( STRUCT_BINDING )

#if span_CPP14_OR_GREATER
# include <tuple>
Expand Down Expand Up @@ -1938,7 +1938,7 @@ span_constexpr ElementType const & get( nonstd::span<ElementType, Extent> const

} // end namespace std

#endif // span_HAVE( STRUCT_BINDING )
#endif // !span_USES_STD_SPAN && span_HAVE( STRUCT_BINDING )

#if ! span_USES_STD_SPAN
span_RESTORE_WARNINGS()
Expand Down

0 comments on commit b892171

Please sign in to comment.