Skip to content

Commit a8774e9

Browse files
committed
Fixed critical compile error on Windows introduced by previous commit
1 parent 753267a commit a8774e9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

include/boost/leaf/detail/demangle.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,19 @@ namespace n
189189
char[
190190
(s01 && (1 == (!!p01 + !!p02 + !!p03 + !!p04 + !!p05 + !!p06 + !!p07 + !!p08 + !!p09 + !!p10 + !!p11 + !!p12)))
191191
||
192-
(s02 && (1 == (!!p13 + !!p14 + !!p15 + !!p16 + !!p17 + !!p18 + !!p19 + !!p20 + !!p21 + !!p22 + !!p23 + !!p24)))
192+
(s02 && (1 == (!!p13 + !!p14 + !!p15 + !!p16 + !!p17 + !!p18 + !!p19 + !!p20 + !!p21)))
193+
||
194+
(s02 && (1 == (!!p22 + !!p23 + !!p24)))
193195
]
194196
) * 2 - 1];
195197
(void) static_assert_unrecognized_pretty_function_format_please_file_github_issue;
196198

197199
if( int const p = sizeof(char[1 + !!s01 * (p01 + p02 + p03 + p04 + p05 + p06 + p07 + p08 + p09 + p10 + p11 + p12)]) - 1 )
198200
return { BOOST_LEAF_PRETTY_FUNCTION + p, s01 - p };
201+
202+
if( int const p = sizeof(char[1 + !!p13 + (!!p14 + !!p15 + !!p16 + !!p17 + !!p18 + !!p19 + !!p20 + !!p21)]) - 1 )
203+
return { BOOST_LEAF_PRETTY_FUNCTION + p, s02 - p };
204+
199205
int const p = sizeof(char[1 + !!s02 * (p22 + p23 + p24)]) - 1; // p is not zero, we've static asserted the hell out of it
200206
return { BOOST_LEAF_PRETTY_FUNCTION + p, s02 - p };
201207
}

0 commit comments

Comments
 (0)