Skip to content

Commit

Permalink
Fixed for g++-9 and boost.
Browse files Browse the repository at this point in the history
Changed the use of some {} to () to use regular ctors.
  • Loading branch information
ninnghazad committed Oct 7, 2019
1 parent 8fc17ca commit fac4caa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/spirit_po/default_plural_forms_expressions.hpp
Expand Up @@ -383,7 +383,7 @@ FOREACH_SPIRIT_PO_BINARY_OP(EMIT_OP_)
std::vector<instruction> 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<uint>(second.size());
if (!second_is_boolean) { sec_size += 2; }
Expand All @@ -404,7 +404,7 @@ FOREACH_SPIRIT_PO_BINARY_OP(EMIT_OP_)
std::vector<instruction> 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<uint>(second.size());
if (!second_is_boolean) { sec_size += 2; }
Expand Down Expand Up @@ -491,7 +491,7 @@ class stack_machine : public boost::static_visitor<uint> {

public:
explicit stack_machine(const expr & e)
: instruction_seq_(boost::apply_visitor(emitter{}, e))
: instruction_seq_(boost::apply_visitor(emitter(), e))
, stack_()
, n_value_()
{}
Expand Down

0 comments on commit fac4caa

Please sign in to comment.