Starting with 3.10.4, just adding #include json.hpp
causes compile error: `overload resolution selected deleted operator '='
#3620
Labels
kind: bug
release item: 🐛 bug fix
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
Description
I've added the
json.hpp
file - as downloaded directly from the releases page - to my project and included it in one of my.cpp
files. No other modification was done - the code itself is not used anyway, not even the recommendedusing
instruction was added.After that build of my Android application using clang 3.8.275480 break with this error:
Note:
After checking the develop version (as instructed at the bottom of the bug report form), I have concluded that this issue is already solved in the
develop
branch.I'm still creating this ticket so other people who have this issue can find it, and possibly to be able to refer to it if
develop
will get unfixed at a later date.Reproduction steps
json.hpp
of version 3.10.4 or 3.10.5 and add it to your project.-std=c++14
Expected vs. actual results
The build should complete without errors, instead we get a build error (see below).
Minimal code example
NDKROOT=/where/you/have/android-ndk-r14b;
SYSROOT=$NDKROOT/platforms/android-21/arch-x86_64;
LLVM_ARCH_LIBS=$NDKROOT/sources/cxx-stl/llvm-libc++/libs/x86_64/;
$NDKROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -cc1
-triple x86_64-none-linux-android
-I $NDKROOT/sources/cxx-stl/llvm-libc++/include
-I $SYSROOT/usr/include
-I $NDKROOT/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/3.8.275480/include
-std=c++14
-o test-json.cpp.o test-json.cpp
Error messages
The text was updated successfully, but these errors were encountered: