Skip to content

Commit e35d066

Browse files
Martin Poschtzlaine
authored andcommitted
Avoid Compiler Warning. move declaration of 'buf' into region of #if BOOST_PARSER_DETAIL_TEXT_USE_CONCEPTS as it is only used there.
1 parent b1b7b22 commit e35d066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/parser/detail/text/transcode_iterator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3220,8 +3220,8 @@ namespace boost::parser::detail { namespace text {
32203220
buf_index_ = buf_last_ - 1;
32213221
to_increment_ = (int)std::distance(curr(), initial);
32223222
} else {
3223-
auto buf = buf_;
32243223
#if BOOST_PARSER_DETAIL_TEXT_USE_CONCEPTS
3224+
auto buf = buf_;
32253225
try {
32263226
#endif
32273227
char32_t cp = decode_code_point_reverse();

0 commit comments

Comments
 (0)