Skip to content

Commit 0301cf5

Browse files
author
Hana Dusíková
committed
reverse previous commit
1 parent 44d9b39 commit 0301cf5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

include/ctre/return_type.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <string>
1010
#include <iterator>
1111
#include <iosfwd>
12-
#include <memory>
1312
#if __has_include(<charconv>)
1413
#include <charconv>
1514
#endif
@@ -72,19 +71,11 @@ template <size_t Id, typename Name = void> struct captured_content {
7271
if constexpr (std::is_same_v<Iterator, utf8_iterator>) {
7372
return _begin.ptr;
7473
} else {
75-
#if __cpp_lib_to_address >= 201711L
76-
return std::to_address(_begin);
77-
#else
7874
return &*_begin;
79-
#endif
8075
}
8176
#else
82-
#if __cpp_lib_to_address >= 201711L
83-
return std::to_address(_begin);
84-
#else
8577
return &*_begin;
8678
#endif
87-
#endif
8879
}
8980

9081
constexpr CTRE_FORCE_INLINE const auto * data() const noexcept {

0 commit comments

Comments
 (0)