2
0
mirror of https://github.com/boostorg/hof.git synced 2026-01-21 17:02:28 +00:00
Files
hof/test/final_base.cpp

21 lines
339 B
C++

#include <fit/flip.hpp>
#include "test.hpp"
#if defined(__GNUC__) && !defined (__clang__) && __GNUC__ == 4 && __GNUC_MINOR__ < 7
#define FINAL
#else
#define FINAL final
#endif
struct f FINAL {
int operator()(int i, void *) const {
return i;
}
};
FIT_TEST_CASE()
{
FIT_TEST_CHECK(fit::flip(f())(nullptr, 2) == 2);
}