Boost logo

Boost :

From: Kevlin Henney (kevlin_at_[hidden])
Date: 2000-12-04 15:02:19


In message <90gl2v+jgt1_at_[hidden]>, d.frey_at_[hidden] writes
>--- In boost_at_[hidden], "Peter Dimov" <pdimov_at_m...> wrote:
>> Try this:
>>
>> template<std::size_t N> string lexical_cast_helper<string, char[N]>
>> {
>> static std::string call(char const * s)
>> {
>> return s;
>> }
>> };
>
>Fantastic, thanks! I changed "string" to "class" in the first line and
>it worked! Now, I think it's worth to resend the whole code. Kevlin,
>you're reading this?

Yes :-) Hands up all those in favour?

Great work, Peter: I mucked around with a trait-based approach a few
months ago, but it ended up with creeping featurism so I abandoned it.
This solves the problem directly and simply without trying to take on
any extra bells and whistles.

Kevlin
____________________________________________________________

  Kevlin Henney phone: +44 117 942 2990
  Curbralan Limited mobile: +44 7801 073 508
  mailto:kevlin_at_[hidden] fax: +44 870 052 2289
  http://www.curbralan.com
____________________________________________________________


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