Skip to content

Commit

Permalink
spanstream does not support no-localization
Browse files Browse the repository at this point in the history
  • Loading branch information
H-G-Hristov committed Oct 12, 2024
1 parent 39a02c4 commit 3a123c2
Showing 1 changed file with 33 additions and 28 deletions.
61 changes: 33 additions & 28 deletions libcxx/include/spanstream
Original file line number Diff line number Diff line change
Expand Up @@ -54,31 +54,34 @@

// clang-format on

#include <__concepts/convertible_to.h>
#include <__config>
#include <__fwd/spanstream.h>
#include <__memory/addressof.h>
#include <__ranges/concepts.h>
#include <__utility/cmp.h>
#include <__utility/forward.h>
#include <__utility/move.h>
#include <__utility/swap.h>
#include <ios>
#include <iostream>
#include <span>
#include <streambuf>
#include <version>

#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
#endif

#if !defined(_LIBCPP_HAS_NO_LOCALIZATION)

# include <__concepts/convertible_to.h>
# include <__fwd/spanstream.h>
# include <__memory/addressof.h>
# include <__ranges/concepts.h>
# include <__utility/cmp.h>
# include <__utility/forward.h>
# include <__utility/move.h>
# include <__utility/swap.h>
# include <ios>
# include <iostream>
# include <span>
# include <streambuf>
# include <version>

# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
# endif

_LIBCPP_PUSH_MACROS
#include <__undef_macros>
# include <__undef_macros>

_LIBCPP_BEGIN_NAMESPACE_STD

#if _LIBCPP_STD_VER >= 23
# if _LIBCPP_STD_VER >= 23

// Class template basic_spanbuf [spanbuf]

Expand Down Expand Up @@ -240,9 +243,9 @@ _LIBCPP_HIDE_FROM_ABI void swap(basic_spanbuf<_CharT, _Traits>& __x, basic_spanb
}

using std::spanbuf;
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
using std::wspanbuf;
# endif
# endif

// Class template basic_ispanstream [ispanstream]

Expand Down Expand Up @@ -318,9 +321,9 @@ _LIBCPP_HIDE_FROM_ABI void swap(basic_ispanstream<_CharT, _Traits>& __x, basic_i
}

using std::ispanstream;
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
using std::wispanstream;
# endif
# endif

// Class template basic_ospanstream [ospanstream]

Expand Down Expand Up @@ -381,9 +384,9 @@ _LIBCPP_HIDE_FROM_ABI void swap(basic_ospanstream<_CharT, _Traits>& __x, basic_o
}

using std::ospanstream;
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
using std::wospanstream;
# endif
# endif

template <class _CharT, class _Traits>
class _LIBCPP_TEMPLATE_VIS basic_spanstream : public basic_iostream<_CharT, _Traits> {
Expand Down Expand Up @@ -442,16 +445,18 @@ _LIBCPP_HIDE_FROM_ABI void swap(basic_spanstream<_CharT, _Traits>& __x, basic_sp
}

using std::spanstream;
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
using std::wspanstream;
# endif
# endif

#endif // _LIBCPP_STD_VER >= 23
# endif // _LIBCPP_STD_VER >= 23

_LIBCPP_END_NAMESPACE_STD

_LIBCPP_POP_MACROS

#endif // !_LIBCPP_HAS_NO_LOCALIZATION

#if _LIBCPP_STD_VER <= 20 && !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES)
# include <type_traits>
#endif
Expand Down

0 comments on commit 3a123c2

Please sign in to comment.