20 Apr
2009
20 Apr
'09
6:35 p.m.
On Tue, Apr 21, 2009 at 2:14 AM,
Could something like
template<typename T> T lexical_cast
(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