-#include "config.h"
+/**
+ * \file math_pos.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#include <config.h>
+
#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()
: inset_(0), idx_(0), pos_(0)
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\n";
+ lyxerr << "can't compare cursor and anchor in different insets\n"
+ << "p: " << p << '\n' << "q: " << q << endl;
return true;
}
if (p.idx_ != q.idx_)