*
* \author John Levon
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "author.h"
-#include "support/LAssert.h"
-#include "support/LOstream.h"
-#include "support/LIstream.h"
#include "support/lstrings.h"
+#include <boost/assert.hpp>
+
+#include "support/std_istream.h"
+
+
+namespace lyx {
+
+using support::token;
+using support::trim;
+
+using std::string;
+
+
bool operator==(Author const & l, Author const & r)
{
return l.name() == r.name() && l.email() == r.email();
void AuthorList::record(int id, Author const & a)
{
- lyx::Assert(unsigned(id) < authors_.size());
+ BOOST_ASSERT(unsigned(id) < authors_.size());
authors_[id] = a;
}
Author const & AuthorList::get(int id)
{
Authors::const_iterator it(authors_.find(id));
- lyx::Assert(it != authors_.end());
+ BOOST_ASSERT(it != authors_.end());
return it->second;
}
{
return authors_.end();
}
+
+
+} // namespace lyx