Skip to content

Commit 40ff255

Browse files
committed
Ran make single-header
I didn't realize I needed to update the single header versions :)
1 parent 2cba281 commit 40ff255

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

single-header/ctre-unicode.hpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3004,8 +3004,9 @@ template <size_t Id, typename Name = void> struct captured_content {
30043004
} else {
30053005
return static_cast<size_t>(std::distance(begin(), end()));
30063006
}
3007-
#endif
3007+
#else
30083008
return static_cast<size_t>(std::distance(begin(), end()));
3009+
#endif
30093010
}
30103011

30113012
#if __has_include(<charconv>)
@@ -3033,8 +3034,9 @@ template <size_t Id, typename Name = void> struct captured_content {
30333034
} else {
30343035
return std::basic_string<char_type>(begin(), end());
30353036
}
3036-
#endif
3037+
#else
30373038
return std::basic_string<char_type>(begin(), end());
3039+
#endif
30383040
}
30393041

30403042
constexpr CTRE_FORCE_INLINE auto view() const noexcept {
@@ -3834,10 +3836,10 @@ template <size_t Capacity> class point_set {
38343836
auto first = begin();
38353837
auto last = end();
38363838
auto it = first;
3837-
size_t count = std::distance(first, last);
3838-
while (count > 0) {
3839+
auto count = std::distance(first, last);
3840+
while (count != 0) {
38393841
it = first;
3840-
size_t step = count / 2;
3842+
auto step = count / 2;
38413843
std::advance(it, step);
38423844
if (*it < obj) {
38433845
first = ++it;

single-header/ctre.hpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3001,8 +3001,9 @@ template <size_t Id, typename Name = void> struct captured_content {
30013001
} else {
30023002
return static_cast<size_t>(std::distance(begin(), end()));
30033003
}
3004-
#endif
3004+
#else
30053005
return static_cast<size_t>(std::distance(begin(), end()));
3006+
#endif
30063007
}
30073008

30083009
#if __has_include(<charconv>)
@@ -3030,8 +3031,9 @@ template <size_t Id, typename Name = void> struct captured_content {
30303031
} else {
30313032
return std::basic_string<char_type>(begin(), end());
30323033
}
3033-
#endif
3034+
#else
30343035
return std::basic_string<char_type>(begin(), end());
3036+
#endif
30353037
}
30363038

30373039
constexpr CTRE_FORCE_INLINE auto view() const noexcept {
@@ -3831,10 +3833,10 @@ template <size_t Capacity> class point_set {
38313833
auto first = begin();
38323834
auto last = end();
38333835
auto it = first;
3834-
size_t count = std::distance(first, last);
3835-
while (count > 0) {
3836+
auto count = std::distance(first, last);
3837+
while (count != 0) {
38363838
it = first;
3837-
size_t step = count / 2;
3839+
auto step = count / 2;
38383840
std::advance(it, step);
38393841
if (*it < obj) {
38403842
first = ++it;

0 commit comments

Comments
 (0)