Unverified Commit 96a8a935 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #148 from nim65s/devel

add required consts for C++17
parents ac34244f c123fb04
Pipeline #14665 passed with stage
in 25 minutes and 51 seconds
......@@ -94,13 +94,13 @@ namespace serialization {
namespace remove_duplicate {
template<typename Key, typename Compare = std::less<Key> >
struct ptr_less : Compare {
inline bool operator() (Key const* t1, Key const* t2) { return Compare::operator() (*t1, *t2); }
inline bool operator() (Key const* t1, Key const* t2) const { return Compare::operator() (*t1, *t2); }
};
template<typename Derived>
struct eigen_compare {
bool operator() (const Eigen::PlainObjectBase<Derived>& a,
const Eigen::PlainObjectBase<Derived>& b)
const Eigen::PlainObjectBase<Derived>& b) const
{
if (a.size() < b.size()) return true;
if (a.size() > b.size()) return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment