File tree Expand file tree Collapse file tree 3 files changed +21
-27
lines changed Expand file tree Collapse file tree 3 files changed +21
-27
lines changed Original file line number Diff line number Diff line change 8
8
#include < string_view>
9
9
#include < string>
10
10
#include < iterator>
11
+ #ifdef _MSC_VER
11
12
#include < memory>
13
+ #endif
12
14
#include < iosfwd>
13
15
#if __has_include(<charconv>)
14
16
#include < charconv>
@@ -80,15 +82,11 @@ template <size_t Id, typename Name = void> struct captured_content {
80
82
} else { // I'm doing this to avoid warning about dead code
81
83
#endif
82
84
83
- if constexpr (std::is_pointer_v<Iterator>) {
84
- return _begin;
85
- } else {
86
- #if __cpp_lib_to_address >= 201711L
87
- return std::to_address (_begin);
88
- #else
89
- return &*_begin;
90
- #endif
91
- }
85
+ #ifdef _MSC_VER
86
+ return std::to_address (_begin);
87
+ #else
88
+ return &*_begin;
89
+ #endif
92
90
93
91
#if __cpp_char8_t >= 201811
94
92
}
Original file line number Diff line number Diff line change @@ -3296,7 +3296,9 @@ struct utf8_range {
3296
3296
#include <string_view>
3297
3297
#include <string>
3298
3298
#include <iterator>
3299
+ #ifdef _MSC_VER
3299
3300
#include <memory>
3301
+ #endif
3300
3302
#include <iosfwd>
3301
3303
#if __has_include(<charconv>)
3302
3304
#include <charconv>
@@ -3368,15 +3370,11 @@ template <size_t Id, typename Name = void> struct captured_content {
3368
3370
} else { // I'm doing this to avoid warning about dead code
3369
3371
#endif
3370
3372
3371
- if constexpr (std::is_pointer_v<Iterator>) {
3372
- return _begin;
3373
- } else {
3374
- #if __cpp_lib_to_address >= 201711L
3375
- return std::to_address(_begin);
3376
- #else
3377
- return &*_begin;
3378
- #endif
3379
- }
3373
+ #ifdef _MSC_VER
3374
+ return std::to_address(_begin);
3375
+ #else
3376
+ return &*_begin;
3377
+ #endif
3380
3378
3381
3379
#if __cpp_char8_t >= 201811
3382
3380
}
Original file line number Diff line number Diff line change @@ -3293,7 +3293,9 @@ struct utf8_range {
3293
3293
#include < string_view>
3294
3294
#include < string>
3295
3295
#include < iterator>
3296
+ #ifdef _MSC_VER
3296
3297
#include < memory>
3298
+ #endif
3297
3299
#include < iosfwd>
3298
3300
#if __has_include(<charconv>)
3299
3301
#include < charconv>
@@ -3365,15 +3367,11 @@ template <size_t Id, typename Name = void> struct captured_content {
3365
3367
} else { // I'm doing this to avoid warning about dead code
3366
3368
#endif
3367
3369
3368
- if constexpr (std::is_pointer_v<Iterator>) {
3369
- return _begin;
3370
- } else {
3371
- #if __cpp_lib_to_address >= 201711L
3372
- return std::to_address (_begin);
3373
- #else
3374
- return &*_begin;
3375
- #endif
3376
- }
3370
+ #ifdef _MSC_VER
3371
+ return std::to_address (_begin);
3372
+ #else
3373
+ return &*_begin;
3374
+ #endif
3377
3375
3378
3376
#if __cpp_char8_t >= 201811
3379
3377
}
You can’t perform that action at this time.
0 commit comments