Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit bf78e1c9 authored by snuverink_j's avatar snuverink_j
Browse files

fix compiler error with boost 1.68 : ambiguity of _1 and _2, make explicit

parent 7a003685
No related branches found
No related tags found
1 merge request!178Resolve "compilation error with OPAL_DKS"
...@@ -31,12 +31,13 @@ namespace client { namespace code_gen ...@@ -31,12 +31,13 @@ namespace client { namespace code_gen
template <typename ErrorHandler> template <typename ErrorHandler>
StackEvaluator(ErrorHandler& error_handler_) StackEvaluator(ErrorHandler& error_handler_)
{ {
using namespace boost::phoenix::arg_names;
namespace phx = boost::phoenix; namespace phx = boost::phoenix;
using boost::phoenix::function; using boost::phoenix::function;
error_handler = function<ErrorHandler>(error_handler_)( error_handler = function<ErrorHandler>(error_handler_)
std::string("Error! "), _2, phx::cref(error_handler_.iters)[_1]); (std::string("Error! "),
phx::arg_names::_2,
phx::cref(error_handler_.iters)[phx::arg_names::_1]);
} }
double result() { double result() {
......
...@@ -25,12 +25,13 @@ namespace client { namespace code_gen ...@@ -25,12 +25,13 @@ namespace client { namespace code_gen
template <typename ErrorHandler> template <typename ErrorHandler>
requirements(ErrorHandler& error_handler_) requirements(ErrorHandler& error_handler_)
{ {
using namespace boost::phoenix::arg_names;
namespace phx = boost::phoenix; namespace phx = boost::phoenix;
using boost::phoenix::function; using boost::phoenix::function;
error_handler = function<ErrorHandler>(error_handler_)( error_handler = function<ErrorHandler>(error_handler_)
std::string("Error! "), _2, phx::cref(error_handler_.iters)[_1]); (std::string("Error! "),
phx::arg_names::_2,
phx::cref(error_handler_.iters)[phx::arg_names::_1]);
} }
bool operator()(ast::nil) { BOOST_ASSERT(0); return false; } bool operator()(ast::nil) { BOOST_ASSERT(0); return false; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment