Skip to content

Commit 95afdd8

Browse files
authored
Merge pull request #204 from Andersama/patch-negated-sets
2 parents eeada60 + 7bade71 commit 95afdd8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/ctre/first.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ template <typename... Content> constexpr auto calculate_first(Content...) noexce
282282

283283
// calculate mutual exclusivity
284284
template <typename... Content> constexpr size_t calculate_size_of_first(ctre::negative_set<Content...>) {
285-
return 1 + 1 * sizeof...(Content);
285+
return 1 + calculate_size_of_first(ctre::set<Content...>{});
286286
}
287287

288288
template <auto... V> constexpr size_t calculate_size_of_first(ctre::enumeration<V...>) {

single-header/ctre-unicode.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3722,7 +3722,7 @@ template <typename... Content> constexpr auto calculate_first(Content...) noexce
37223722

37233723
// calculate mutual exclusivity
37243724
template <typename... Content> constexpr size_t calculate_size_of_first(ctre::negative_set<Content...>) {
3725-
return 1 + 1 * sizeof...(Content);
3725+
return 1 + calculate_size_of_first(ctre::set<Content...>{});
37263726
}
37273727

37283728
template <auto... V> constexpr size_t calculate_size_of_first(ctre::enumeration<V...>) {

single-header/ctre.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3719,7 +3719,7 @@ template <typename... Content> constexpr auto calculate_first(Content...) noexce
37193719

37203720
// calculate mutual exclusivity
37213721
template <typename... Content> constexpr size_t calculate_size_of_first(ctre::negative_set<Content...>) {
3722-
return 1 + 1 * sizeof...(Content);
3722+
return 1 + calculate_size_of_first(ctre::set<Content...>{});
37233723
}
37243724

37253725
template <auto... V> constexpr size_t calculate_size_of_first(ctre::enumeration<V...>) {

0 commit comments

Comments
 (0)