#include "changes.h"
#include "debug.h"
+#include <cmath>
#include <boost/assert.hpp>
namespace lyx {
+using std::abs;
using std::endl;
using std::string;
using std::max;
return l.author == r.author
// both changes made within 5 minutes?
- && abs(l.changetime - r.changetime) < 300;
+ && abs(difftime(l.changetime, r.changetime)) < 300;
}