From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2005-12-31 11:51:20


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