Skip to content

Commit 76da27e

Browse files
author
Hana Dusíková
committed
added MSVC issue description
1 parent b45902e commit 76da27e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/ctre/evaluation.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ constexpr inline R evaluate_recursive(size_t i, const Iterator begin, Iterator c
240240
// aab
241241

242242
if (auto inner_result = evaluate(begin, current, end, captures, ctll::list<sequence<Content...>, end_cycle_mark>())) {
243+
// TODO MSVC issue:
244+
// if I uncomment this return it will not fail in constexpr (but the matching result will not be correct)
245+
// return inner_result
246+
// I tried to add all constructors to R but without any success
243247
if (auto rec_result = evaluate_recursive(i+1, begin, inner_result.get_end_position(), end, inner_result.unmatch(), stack)) {
244248
return rec_result;
245249
}

0 commit comments

Comments
 (0)