Skip to content

Commit aa1553f

Browse files
authored
Merge pull request #41 from sbchisholm/variant-bugfix
clang >=8 w/C++17 detects trying to access protected dtor
2 parents 395830c + 5d33ee5 commit aa1553f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/bredis/impl/protocol.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ template <typename Iterator, typename Policy> struct bulk_string_parser_t {
289289

290290
auto count_result = count_parser_t::apply(from, to, already_consumed);
291291
auto count_int_result =
292-
boost::apply_visitor(count_unwrapper_t{}, count_result);
292+
boost::apply_visitor(count_unwrapper_t(), count_result);
293293
auto *count_wrapped = boost::get<count_value_t>(&count_int_result);
294294
if (!count_wrapped) {
295295
return boost::get<result_t>(count_int_result);
@@ -330,7 +330,7 @@ template <typename Iterator, typename Policy> struct array_parser_t {
330330

331331
auto count_result = count_parser_t::apply(from, to, already_consumed);
332332
auto count_int_result =
333-
boost::apply_visitor(count_unwrapper_t{}, count_result);
333+
boost::apply_visitor(count_unwrapper_t(), count_result);
334334
auto *count_wrapped = boost::get<count_value_t>(&count_int_result);
335335
if (!count_wrapped) {
336336
return boost::get<result_t>(count_int_result);

0 commit comments

Comments
 (0)