Fix for clang.

This commit is contained in:
Daniel James
2016-10-13 17:03:31 +01:00
parent ece4116329
commit 04607dc9f3

View File

@ -42,15 +42,14 @@ namespace test
} }
struct equivalent_type { struct equivalent_type {
equivalent_type() {}
template <class T1, class T2> template <class T1, class T2>
bool operator()(T1 const& x, T2 const& y) const { bool operator()(T1 const& x, T2 const& y) const {
return equivalent_impl(x, y, derived); return equivalent_impl(x, y, derived);
} }
}; };
// This should't be a problem as I'm only using a single compile unit
// in each test (this is actually require by the minimal test
// framework).
const equivalent_type equivalent; const equivalent_type equivalent;
template <class Container> template <class Container>