123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #include "rttr/detail/comparison/compare_equal.h"
- #include "rttr/detail/type/type_register_p.h"
- #include "rttr/type.h"
- #include <cstring>
- namespace rttr
- {
- namespace detail
- {
- bool compare_types_equal(const void* lhs, const void* rhs, const type& t, bool& ok)
- {
- if (auto cmp_f = t.get_equal_comparator())
- {
- ok = true;
- return cmp_f->cmp(lhs, rhs);
- }
- ok = false;
- return false;
- }
- }
- }
|