diff options
Diffstat (limited to 'test/std/containers/test_compare.h')
-rw-r--r-- | test/std/containers/test_compare.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/std/containers/test_compare.h b/test/std/containers/test_compare.h index 9c5479917..35f4640f1 100644 --- a/test/std/containers/test_compare.h +++ b/test/std/containers/test_compare.h @@ -33,4 +33,13 @@ public: {return data_ == c.data_;} }; + +template <class C> +class non_const_compare +{ +// operator() deliberately not marked as 'const' + bool operator()(const C& x,const C&y) { return x < y; } +}; + + #endif // TEST_COMPARE_H |