Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#6670 closed Bugs (fixed)

Apple clang++ -stdc=c++0x breaks on lexical_cast.hpp

Reported by: Arne Schwabe <arne-boost@…> Owned by: Antony Polukhin
Milestone: To Be Determined Component: lexical_cast
Version: Boost 1.49.0 Severity: Problem
Keywords: clang, macos Cc:

Description

clang++ -v
Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix

test.cpp:

#include <boost/lexical_cast.hpp>
[12:07]{1}arne@pluto:~/tmp/tmp% clang++ -std=c++0x -I/opt/local/include  test.cpp
In file included from test.cpp:1:
/opt/local/include/boost/lexical_cast.hpp:495:13: error: use of undeclared identifier 'u'
            BOOST_STATIC_CONSTANT(char16_t, zero  = u'0');

[...]

Change History (6)

comment:1 by chinux@…, 11 years ago

I also have the exact the problem when upgrading to boost 1.49.0

comment:2 by anonymous, 11 years ago

Component: Nonelexical_cast
Owner: set to Antony Polukhin

comment:3 by Antony Polukhin, 11 years ago

Resolution: fixed
Status: newclosed

(In [77691]) Fixes #6670 (now using BOOST_NO_UNICODE_LITERALS macro)

comment:4 by Antony Polukhin, 11 years ago

(In [77721]) More workarounds for fixed #6670 (disable basic char16_t and char32_t tests for some compilers, disable optimizations for them)

comment:5 by Antony Polukhin, 11 years ago

(In [77745]) More workarounds for fixed #6670 (disable more char16_t and char32_t tests for some compilers)

comment:6 by Antony Polukhin, 11 years ago

(In [77804]) Merge lexical_cast from trunk:

  • fixed #6717 (now lexical_cast won`t try to support non confirming swprintf)
  • fixed #6670 (now using BOOST_NO_UNICODE_LITERALS macro to detect unicode literals support)
  • rewritten Jamfile
Note: See TracTickets for help on using tickets.