Just an addition:
Explicit specialization of std templates is legal. So if you _exactly_ know vector types for which your <<-operator should work you can write:
namespace std
{
AMDG
Yes. It isn't legal to put it in namespace std, though.
Scott McMurray wrote:
> On Sun, Apr 6, 2008 at 5:15 PM, Andy Stevenson
> <andy.stevenson@uk.fujitsu.com> wrote:
>
>> Why doesn't the lexical_cast work below?
>>
>>
>
> Your operator<<'s not in namespace std, so ADL cannot find it.
>
> ( I think that's it, anyways. )
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users