
22 Mar
2005
22 Mar
'05
2:39 p.m.
Jens Theisen <jens.theisen@transversal.com> writes:
Thorsten Ottosen wrote:
Hm.. yeah, I thought something like
operator typename enable_if< is_same<T,int>, int>::type() { would work.
I doubt that, because it should be impossible to deduce the type.
If anyone know of a trick to do a SNIFAE in a conversion operators, or knows that it is not possible, we would like to hear.
I think the enable_if docs make it quite clear that it can't be done. -- Dave Abrahams Boost Consulting www.boost-consulting.com