File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ template <typename OutputIt> class truncating_iterator_base {
36
36
using difference_type = std::ptrdiff_t ;
37
37
using pointer = void ;
38
38
using reference = void ;
39
- using _Unchecked_type =
40
- truncating_iterator_base; // Mark iterator as checked.
39
+ FMT_UNCHECKED_ITERATOR (truncating_iterator_base);
41
40
42
41
OutputIt base () const { return out_; }
43
42
size_t count () const { return count_; }
Original file line number Diff line number Diff line change 217
217
# endif
218
218
#endif
219
219
220
+ #ifdef _MSC_VER
221
+ # define FMT_UNCHECKED_ITERATOR (It ) \
222
+ using _Unchecked_type = It // Mark iterator as checked.
223
+ #else
224
+ # define FMT_UNCHECKED_ITERATOR (It ) using DummyTypeName = It
225
+ #endif
226
+
220
227
#ifndef FMT_BEGIN_NAMESPACE
221
228
# define FMT_BEGIN_NAMESPACE \
222
229
namespace fmt { \
@@ -1498,7 +1505,7 @@ class appender : public std::back_insert_iterator<detail::buffer<char>> {
1498
1505
public:
1499
1506
using std::back_insert_iterator<detail::buffer<char >>::back_insert_iterator;
1500
1507
appender (base it) noexcept : base(it) {}
1501
- using _Unchecked_type = appender; // Mark iterator as checked.
1508
+ FMT_UNCHECKED_ITERATOR ( appender);
1502
1509
1503
1510
auto operator ++() noexcept -> appender& { return *this ; }
1504
1511
Original file line number Diff line number Diff line change @@ -1968,7 +1968,7 @@ class counting_iterator {
1968
1968
using difference_type = std::ptrdiff_t ;
1969
1969
using pointer = void ;
1970
1970
using reference = void ;
1971
- using _Unchecked_type = counting_iterator; // Mark iterator as checked.
1971
+ FMT_UNCHECKED_ITERATOR ( counting_iterator);
1972
1972
1973
1973
struct value_type {
1974
1974
template <typename T> void operator =(const T&) {}
You can’t perform that action at this time.
0 commit comments