Category : boost

An Android app from my organization needs to assign each users an UUID(version 4) when they first launch the app, currently we’re using Boost library 1.58.0 for this purpose, our Android app will use JNI to run the code below for generating UUIDv4: boost::uuids::basic_random_generator<boost::random::lagged_fibonacci44497> generator; generator(); //generating UUIDv4 The code worked fine for years, now ..

Read more

I know how to build Boost.Locale for MacOS with custom ICU (that I have already prebuilt for iOS(Arm64/x86_64) and Android(arm64/armv7/x86/x86_64)), here the shell commands: $ ./bootstrap.sh toolset=darwin macosx-version=10.11 macosx-version-min=10.8 –with-icu="/path/to/icu/icu4c/build_macos/prebuilts" $ ./b2 toolset=darwin –without-mpi optimization=speed cxxflags="-arch x86_64 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -stdlib=libc++ -ftemplate-depth=512" linkflags="-stdlib=libc++" –reconfigure boost.locale.iconv=off boost.locale.icu=on -sICU_PATH=/path/to/icu/icu4c/build_macos/prebuilts -link=static stage This lines working perfectly for MacOS. ..

Read more

I’m unable to consume Boost headers for Android 32bit architectures (armeabi-v7a and x86). includeboost/ratio/detail/overflow_helpers.hpp:74:82: error: no member named ‘const_min’ in ‘boost::integer_traits<long long>’ [build] static const boost::intmax_t min = boost::integer_traits<boost::intmax_t>::const_min; I’m using clang and toolchains that come with Android NDK along with CMAKE. Can I pass some flags so Boost knows that it’s a 32 bit ..

Read more