
31 Dec
2005
31 Dec
'05
4:51 p.m.
Eric Niebler wrote:
That only works on compilers that handle SFINAE. Probably the easiest thing would be to remove the char* overloads and modify the "primary" boost_range_end(T const &) overload, which currently only works when T is an STL container, to use is_pointer<T> to dispatch to str_end().
What if the non-template overload would be replaced by a template overload? template<> const char* boost_range_end( const char* s ) Wouldn't that work? I know of a similar (but much less complex) case where this solved the overload resolution problem. Sebastian Redl