Boost logo

Boost Users :

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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net