|
Boost : |
Subject: Re: [boost] [1.48.0] Beta 1 release candidates available
From: Artyom Beilis (artyomtnk_at_[hidden])
Date: 2011-10-27 16:25:55
Ok I'll take a look on it ASAP.
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.sf.net/
CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/
--- On Thu, 10/27/11, Vicente Botet <vicente.botet_at_[hidden]> wrote:
> From: Vicente Botet <vicente.botet_at_[hidden]>
> Subject: Re: [boost] [1.48.0] Beta 1 release candidates available
> To: boost_at_[hidden]
> Date: Thursday, October 27, 2011, 10:18 PM
>
> Artyom Beilis wrote:
> >
> >>
> >
> >> There are some build errors on MAC-OS clang in
> libraries Locale and Math.
> >>
> >> clang-darwin.compile.c++
> >>
> bin.v2/libs/locale/build/clang-darwin-3.0x/release/threading-multi/posix/codecvt.o
> >> libs/locale/src/posix/codecvt.cpp:137:30: error:
> non-constant-expression
> >> cannot
> >> be narrowed from type 'unsigned char' to 'char' in
> initializer
> >> list
> >> char inseq[3] = {seq0 ,
> begin[1], 0};
> >>
> ^~~~
> >> libs/locale/src/posix/codecvt.cpp:137:30: note:
> override this message by
> >> inserting an explicit cast
> >> char inseq[3] = {seq0 ,
> begin[1], 0};
> >>
> ^~~~
> >>
> stat)c_cast<char>(
> >> 1 error generated.
> >>
> >
> > I don't see this problem with clang-2.8.
> >
> > Why clang-3 does not allow code like (I don't have
> clang-3 to check)?
> >
> > int main()
> > {
> > unsigned char uc = 10;
> > char c[2] = { uc , 1 };
> > }
> >
> > Is this really error, why the compiler does not cast?
> >
> >
>
> I don't know. The same error appears with clang-2.9 c++03
> or c++11 mode.
>
>
>
> >
> >> ...
> >> The same error appears several times then
> >>
> >
> > Is this the same error all over?
> >
>
> The locale error occurred just once. It was the Math error
> that appeared
> several times.
>
> Best,
> Vicente
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk