Corrected syntax errors found by Clang

This commit is contained in:
John Wiegley 2010-10-07 01:51:38 -04:00
parent e2c31a6bc2
commit 5fd91d26ce
2 changed files with 8 additions and 6 deletions

View file

@ -112,11 +112,11 @@ public:
} }
basic_flags_t(const T& bits) { basic_flags_t(const T& bits) {
TRACE_CTOR(basic_flags_t, "const T&"); TRACE_CTOR(basic_flags_t, "const T&");
set_flags(bits); supports_flags<T, U>::set_flags(bits);
} }
basic_flags_t(const U& bits) { basic_flags_t(const U& bits) {
TRACE_CTOR(basic_flags_t, "const U&"); TRACE_CTOR(basic_flags_t, "const U&");
set_flags(static_cast<T>(bits)); supports_flags<T, U>::set_flags(static_cast<T>(bits));
} }
~basic_flags_t() throw() { ~basic_flags_t() throw() {
TRACE_DTOR(basic_flags_t); TRACE_DTOR(basic_flags_t);

View file

@ -267,8 +267,10 @@ public:
ostream_pos_type * end_pos; ostream_pos_type * end_pos;
bool relaxed; bool relaxed;
context_t(const ptr_op_t& _expr_op = NULL, context_t() : start_pos(NULL), end_pos(NULL), relaxed(false) {}
const ptr_op_t& _op_to_find = NULL,
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 _start_pos = NULL,
ostream_pos_type * const _end_pos = NULL, ostream_pos_type * const _end_pos = NULL,
const bool _relaxed = true) const bool _relaxed = true)
@ -281,7 +283,7 @@ public:
void dump(std::ostream& out, const int depth = 0) const; 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_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) #if defined(HAVE_BOOST_SERIALIZATION)
private: 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 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)); ptr_op_t temp(new op_t(op_t::FUNCTION));
temp->set_function(fobj); temp->set_function(fobj);
return temp; return temp;