#include "math_pos.h"
#include "math_inset.h"
#include "debug.h"
-#include "support/LAssert.h"
-#include "support/LOstream.h"
-using namespace lyx::support;
+#include <boost/assert.hpp>
using std::endl;
CursorPos::CursorPos(MathInset * p)
: inset_(p), idx_(0), pos_(0)
{
- Assert(inset_);
+ BOOST_ASSERT(inset_);
}
MathArray & CursorPos::cell(MathArray::idx_type idx) const
{
- Assert(inset_);
+ BOOST_ASSERT(inset_);
return inset_->cell(idx);
}
MathArray & CursorPos::cell() const
{
- Assert(inset_);
+ BOOST_ASSERT(inset_);
return inset_->cell(idx_);
}
bool operator<(CursorPos const & p, CursorPos const & q)
{
if (p.inset_ != q.inset_) {
- lyxerr << "can't compare cursor and anchor in different insets"
- << endl;
+ lyxerr << "can't compare cursor and anchor in different insets\n"
+ << "p: " << p << '\n' << "q: " << q << endl;
return true;
}
if (p.idx_ != q.idx_)