Boost logo

Boost :

From: Atry (pop.atry_at_[hidden])
Date: 2007-08-17 04:37:25


When I use utf8_encoded, I am very strange that passing a wchar_t range to
utf8_encoded is error on windows.
You write BOOST_STATIC_ASSERT(sizeof(base_value_t)*CHAR_BIT == 32); But
wchar_t is 16 bits length on windows. I have to write some like this:

struct static_cast_to_u32 {
  typedef uint32_t result_type;
  result_type operator()(wchar_t c) const {
    return static_cast<result_type>(c);
  }
};

u16_string | transformed(static_cast_to_u32()) | utf8_encoded;

On 8/17/07, shunsuke <pstade.mb_at_[hidden]> wrote:
>
> Atry wrote:
> > Sorry, I have not seen streambuf_read one day before.
> > I want to write a lazy encoder like utf_encoded, when I see your source,
> I
> > found pstade.egg, it seems egg provider the base of your lisp like
> function,
> > could you please add a little document for egg, I am realy interesting
> in
> > the function style.
>
> Egg is a set of higher-order functions which work with boost::result_of.
> Fortunately I'm now documenting Egg just for myself. :-)
> Though I cannot promise it, oven rev.3 might include the document.
>
>
> Regards,
>
> --
> Shunsuke Sogame
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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