From fac4caa4d01f0fefbc88db6c3518454dc3ff2dde Mon Sep 17 00:00:00 2001 From: ninnghazad Date: Mon, 7 Oct 2019 11:46:00 +0200 Subject: [PATCH] Fixed for g++-9 and boost. Changed the use of some {} to () to use regular ctors. --- include/spirit_po/default_plural_forms_expressions.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/spirit_po/default_plural_forms_expressions.hpp b/include/spirit_po/default_plural_forms_expressions.hpp index 595598e..d2c83ff 100644 --- a/include/spirit_po/default_plural_forms_expressions.hpp +++ b/include/spirit_po/default_plural_forms_expressions.hpp @@ -383,7 +383,7 @@ FOREACH_SPIRIT_PO_BINARY_OP(EMIT_OP_) std::vector operator()(const and_op & o) const { auto result = boost::apply_visitor(*this, o.e1); auto second = boost::apply_visitor(*this, o.e2); - bool second_is_boolean = boost::apply_visitor(is_boolean{}, o.e2); + bool second_is_boolean = boost::apply_visitor(is_boolean(), o.e2); uint sec_size = static_cast(second.size()); if (!second_is_boolean) { sec_size += 2; } @@ -404,7 +404,7 @@ FOREACH_SPIRIT_PO_BINARY_OP(EMIT_OP_) std::vector operator()(const or_op & o) const { auto result = boost::apply_visitor(*this, o.e1); auto second = boost::apply_visitor(*this, o.e2); - bool second_is_boolean = boost::apply_visitor(is_boolean{}, o.e2); + bool second_is_boolean = boost::apply_visitor(is_boolean(), o.e2); uint sec_size = static_cast(second.size()); if (!second_is_boolean) { sec_size += 2; } @@ -491,7 +491,7 @@ class stack_machine : public boost::static_visitor { public: explicit stack_machine(const expr & e) - : instruction_seq_(boost::apply_visitor(emitter{}, e)) + : instruction_seq_(boost::apply_visitor(emitter(), e)) , stack_() , n_value_() {}