Boost Users :
Subject: Re: [Boost-users] Unicode support in boost?
From: Igor R (boost.lists_at_[hidden])
Date: 2011-09-08 01:56:09
> When I took a look at codes under "thread', I found there are some places where
> BOOST_NO_ANSI_APIS is related
> ( for example in once.hpp )
> #ifdef BOOST_NO_ANSI_APIS
> Â Â Â typedef wchar_t once_char_type
> Â Â Â typedef char once_char_type
> I am wondering if the boost_thread is NOT related to Unicode ( some said so??? ), why are there some codes above??
> My basic question is How to build Unicode version of the library ( boost_thread...1-47)?
> just defining BOOST_NO_ANSI_APIS in file is enough???
So you mean xxxA/xxxW pairs of WinAPI.
BOOST_NO_ANSI_APIS causes to select xxxW, and it is automatically
defined for WinCE where only xxxW exist.
If you define it manually, you should do this both in bjam line
(define=BOOST_NO_ANSI_APIS), and before you include boost headers in
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