Subject: Re: [Boost-users] [lexical_cast] How is the degenerate case handled?
From: Eugene Wee (crystalrecursion_at_[hidden])
Date: 2009-04-20 14:35:47


On Tue, Apr 21, 2009 at 2:14 AM, <jbosboom_at_[hidden]> wrote:
> Could
> something like
>
> template<typename T>
> T lexical_cast<T, T>(const Target& arg)
>
> work?  (My syntax might not be perfect; it's been a while since I've done
> partial specialization.)

I recall that function templates cannot be partially specialised, so
we (or the user in question) would have to do complete specialisation
instead, so the given type would have to be known.

Regards,
Eugene Wee