Boost logo

Boost :

Subject: Re: [boost] Interest check: constant input matching manipulator
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-09 10:11:09


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk