Opened 9 years ago
Closed 9 years ago
#8497 closed Bugs (fixed)
lexical_cast doesn't compile with Android NDK toolchain
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | Boost 1.54.0 | Component: | config |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Trying to compile lexical_cast with the Android NDK r8d.
#include <stdint.h> #include <boost/lexical_cast.hpp> #include <string>
int main() {
uint64_t x = 1; std::string s = boost::lexical_cast<std::string>(x); return 0;
}
Shows error in boost/detail/endian.hpp "The file boost/detail/endian.hpp needs to be set up for your CPU type."
Change History (4)
comment:1 by , 9 years ago
Component: | lexical_cast → config |
---|---|
Milestone: | To Be Determined → Boost 1.54.0 |
Owner: | changed from | to
comment:2 by , 9 years ago
I'm not sure, but I think this duplicates https://svn.boost.org/trac/boost/ticket/7528, can you please check that the patch supplied there works for you?
comment:3 by , 9 years ago
Yes, the patch works for me. Is there any chance it will be included in the boost?
comment:4 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yes it'll be in the next release.
<boost/detail/endian.hpp>
is a part of Boost.Config (at least I think so).