From 7bade71c8dcd1c3c1e1bf3a32e826f85f10e98a5 Mon Sep 17 00:00:00 2001 From: Andersama Date: Fri, 16 Jul 2021 14:03:18 -0700 Subject: [PATCH] patch calculate_size_of_first which is creating issues with embedded sets --- include/ctre/first.hpp | 2 +- single-header/ctre-unicode.hpp | 2 +- single-header/ctre.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ctre/first.hpp b/include/ctre/first.hpp index 5d13a5aa..bb2f4769 100644 --- a/include/ctre/first.hpp +++ b/include/ctre/first.hpp @@ -282,7 +282,7 @@ template constexpr auto calculate_first(Content...) noexce // calculate mutual exclusivity template constexpr size_t calculate_size_of_first(ctre::negative_set) { - return 1 + 1 * sizeof...(Content); + return 1 + calculate_size_of_first(ctre::set{}); } template constexpr size_t calculate_size_of_first(ctre::enumeration) { diff --git a/single-header/ctre-unicode.hpp b/single-header/ctre-unicode.hpp index 05ce8075..d7de03ed 100644 --- a/single-header/ctre-unicode.hpp +++ b/single-header/ctre-unicode.hpp @@ -3722,7 +3722,7 @@ template constexpr auto calculate_first(Content...) noexce // calculate mutual exclusivity template constexpr size_t calculate_size_of_first(ctre::negative_set) { - return 1 + 1 * sizeof...(Content); + return 1 + calculate_size_of_first(ctre::set{}); } template constexpr size_t calculate_size_of_first(ctre::enumeration) { diff --git a/single-header/ctre.hpp b/single-header/ctre.hpp index 022a6a50..427a2af8 100644 --- a/single-header/ctre.hpp +++ b/single-header/ctre.hpp @@ -3719,7 +3719,7 @@ template constexpr auto calculate_first(Content...) noexce // calculate mutual exclusivity template constexpr size_t calculate_size_of_first(ctre::negative_set) { - return 1 + 1 * sizeof...(Content); + return 1 + calculate_size_of_first(ctre::set{}); } template constexpr size_t calculate_size_of_first(ctre::enumeration) {