
9 Apr
2009
9 Apr
'09
2:11 p.m.
AMDG Stewart, Robert wrote:
I presume you're referring to 17.4.3.1/1, but the necessary operators would be in the global namespace and they don't conflict with the existing overloads because of the const arguments:
template < class IStream , class Char = IStream::char_type , class Traits = IStream::traits_type , class Allocator = std::allocator<Char>
IStream & operator >>(IStream & _stream, std::basic_string<Char,Traits,Allocator> const & _literal);
template <class IStream> IStream & operator >>(IStream & _stream, typename IStream::char_type const * _literal);
Did I miss something?
Such an overload is legal but useless because it won't be found by ADL. In Christ, Steven Watanabe