summaryrefslogtreecommitdiff
path: root/src/op.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/op.h')
-rw-r--r--src/op.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/op.h b/src/op.h
index 63d844bf..6f7d7904 100644
--- a/src/op.h
+++ b/src/op.h
@@ -267,8 +267,10 @@ public:
ostream_pos_type * end_pos;
bool relaxed;
- context_t(const ptr_op_t& _expr_op = NULL,
- const ptr_op_t& _op_to_find = NULL,
+ context_t() : start_pos(NULL), end_pos(NULL), relaxed(false) {}
+
+ context_t(const ptr_op_t& _expr_op,
+ const ptr_op_t& _op_to_find,
ostream_pos_type * const _start_pos = NULL,
ostream_pos_type * const _end_pos = NULL,
const bool _relaxed = true)
@@ -281,7 +283,7 @@ public:
void dump(std::ostream& out, const int depth = 0) const;
static ptr_op_t wrap_value(const value_t& val);
- static ptr_op_t wrap_functor(const expr_t::func_t& fobj);
+ static ptr_op_t wrap_functor(expr_t::func_t fobj);
#if defined(HAVE_BOOST_SERIALIZATION)
private:
@@ -327,7 +329,7 @@ inline expr_t::ptr_op_t expr_t::op_t::wrap_value(const value_t& val) {
}
inline expr_t::ptr_op_t
-expr_t::op_t::wrap_functor(const expr_t::func_t& fobj) {
+expr_t::op_t::wrap_functor(expr_t::func_t fobj) {
ptr_op_t temp(new op_t(op_t::FUNCTION));
temp->set_function(fobj);
return temp;