|
Boost : |
Subject: [boost] [concept] EqualityComparable metafunction
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2011-09-05 18:30:53
Hello all,
What is the best way to check if a type T is EqualityComparable?
Essentially, I would need a is_equality_comparable<> metafunction:
struct mytype {};
is_equality_comparable<int>::value // true
is_equality_comparable<mytype>::value // false
Can I re-use the boost::EqualityComparable concept to implement
is_equality_comparable<>? Or, shall I just try to use
introspection-SFINAE techniques?
Thanks in advance.
--Lorenzo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk