
25 Apr
2012
25 Apr
'12
8:14 p.m.
Le 25/04/12 20:17, Jeffrey Lee Hellrung, Jr. a écrit :
On Wed, Apr 25, 2012 at 10:28 AM, Vicente J. Botet Escriba< vicente.botet@wanadoo.fr> wrote:
Why do you need to specialize this trait for STL containers? Do you mean that has_equal_to doesn't work for them? if no why?
Sorry if this is something obvious.
As far as I've gathered, typical STL implementations won't "guard" the declaration of vector's operator== with something like Boost.EnableIf, so vector<X> is always reported as having an operator== regardless of what X is. Oh, I see now. I had the same issue while implementing is_assignable ;-)
Thanks, Vicente