File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ template <size_t Id, typename Name = void> struct captured_content {
7373 return _matched;
7474 }
7575
76- template <typename It = Iterator> constexpr CTRE_FORCE_INLINE const auto * data_unsafe () const noexcept {
76+ template <typename It = Iterator> constexpr CTRE_FORCE_INLINE const auto * data_unsafe () const noexcept {
7777 static_assert (!is_reverse_iterator<It>, " Iterator in your capture must not be reverse!" );
7878
7979 #if __cpp_char8_t >= 201811
@@ -83,7 +83,7 @@ template <size_t Id, typename Name = void> struct captured_content {
8383 #endif
8484
8585 #ifdef _MSC_VER
86- return std::to_address (_begin);
86+ return std::to_address (_begin); // I'm enabling this only for MSVC for now, as some clang old versions with various libraries (random combinations) has different problems
8787 #else
8888 return &*_begin;
8989 #endif
Original file line number Diff line number Diff line change @@ -3361,7 +3361,7 @@ template <size_t Id, typename Name = void> struct captured_content {
33613361 return _matched;
33623362 }
33633363
3364- template <typename It = Iterator> constexpr CTRE_FORCE_INLINE const auto * data_unsafe() const noexcept {
3364+ template <typename It = Iterator> constexpr CTRE_FORCE_INLINE const auto * data_unsafe() const noexcept {
33653365 static_assert(!is_reverse_iterator<It>, "Iterator in your capture must not be reverse!");
33663366
33673367 #if __cpp_char8_t >= 201811
@@ -3371,7 +3371,7 @@ template <size_t Id, typename Name = void> struct captured_content {
33713371 #endif
33723372
33733373 #ifdef _MSC_VER
3374- return std::to_address(_begin);
3374+ return std::to_address(_begin); // I'm enabling this only for MSVC for now, as some clang old versions with various libraries (random combinations) has different problems
33753375 #else
33763376 return &*_begin;
33773377 #endif
Original file line number Diff line number Diff line change @@ -3358,7 +3358,7 @@ template <size_t Id, typename Name = void> struct captured_content {
33583358 return _matched;
33593359 }
33603360
3361- template <typename It = Iterator> constexpr CTRE_FORCE_INLINE const auto * data_unsafe () const noexcept {
3361+ template <typename It = Iterator> constexpr CTRE_FORCE_INLINE const auto * data_unsafe () const noexcept {
33623362 static_assert (!is_reverse_iterator<It>, " Iterator in your capture must not be reverse!" );
33633363
33643364 #if __cpp_char8_t >= 201811
@@ -3368,7 +3368,7 @@ template <size_t Id, typename Name = void> struct captured_content {
33683368 #endif
33693369
33703370 #ifdef _MSC_VER
3371- return std::to_address (_begin);
3371+ return std::to_address (_begin); // I'm enabling this only for MSVC for now, as some clang old versions with various libraries (random combinations) has different problems
33723372 #else
33733373 return &*_begin;
33743374 #endif
You can’t perform that action at this time.
0 commit comments