Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error while using intel c++ compiler 2018 #994

Closed
tomqt opened this issue Mar 4, 2018 · 4 comments
Closed

compilation error while using intel c++ compiler 2018 #994

tomqt opened this issue Mar 4, 2018 · 4 comments
Labels
platform: icc related to Intel compiler state: needs more info the author of the issue needs to provide more details state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated

Comments

@tomqt
Copy link

tomqt commented Mar 4, 2018

Hello!

I am facing an issue that maybe has been already solved but I can't find documentation regarding it.
When trying to compile a new project that includes json.hpp with Intel C++ 18.0 compiler (as well for Intel C++ 17.0) in visual studio
I get the following errors:

...\json.hpp(428): error : type name is not allowed
detect(std::declval<typename BasicJsonType::template json_serializer<T, void>()))>::value;

...\json.hpp(446): error : type name is not allowed
std::declval<typename BasicJsonType::template json_serializer<T, void>()))>::value;

...\json.hpp(461): error : type name is not allowed
std::declval<typename BasicJsonType::template json_serializer<T, void>()))>::value;

Is it a known and solved issue?

Thanks!

@nlohmann nlohmann added the platform: icc related to Intel compiler label Mar 4, 2018
@nlohmann
Copy link
Owner

nlohmann commented Mar 5, 2018

No, unfortunately I have no idea how to solve this.

@nlohmann nlohmann added the state: help needed the issue needs help to proceed label Mar 5, 2018
@nlohmann
Copy link
Owner

nlohmann commented Mar 6, 2018

I cannot reproduce this issue. I could compile the test suite without problems. I only needed to set CXXFLAGS=-std=c++11, because CMake seems to not have done this:

root@f431bb6d8315:~/json/build# CXX=/opt/intel/bin/icc CXXFLAGS=-std=c++11 cmake ..
-- The CXX compiler identification is Intel 18.0.1.20171018
-- Check for working CXX compiler: /opt/intel/bin/icc
-- Check for working CXX compiler: /opt/intel/bin/icc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using the single-header code from /root/json/single_include/
-- Configuring done
-- Generating done
-- Build files have been written to: /root/json/build
root@f431bb6d8315:~/json/build# make
Scanning dependencies of target catch_main
[  1%] Building CXX object test/CMakeFiles/catch_main.dir/src/unit.cpp.o
[  1%] Built target catch_main
Scanning dependencies of target test-element_access1
[  2%] Building CXX object test/CMakeFiles/test-element_access1.dir/src/unit-element_access1.cpp.o
[  3%] Linking CXX executable test-element_access1
[  3%] Built target test-element_access1
Scanning dependencies of target test-merge_patch
[  5%] Building CXX object test/CMakeFiles/test-merge_patch.dir/src/unit-merge_patch.cpp.o
[  6%] Linking CXX executable test-merge_patch
[  6%] Built target test-merge_patch
Scanning dependencies of target test-msgpack
[  7%] Building CXX object test/CMakeFiles/test-msgpack.dir/src/unit-msgpack.cpp.o
[  9%] Linking CXX executable test-msgpack
[  9%] Built target test-msgpack
Scanning dependencies of target test-element_access2
[ 10%] Building CXX object test/CMakeFiles/test-element_access2.dir/src/unit-element_access2.cpp.o
[ 11%] Linking CXX executable test-element_access2
[ 11%] Built target test-element_access2
Scanning dependencies of target test-class_parser
[ 12%] Building CXX object test/CMakeFiles/test-class_parser.dir/src/unit-class_parser.cpp.o
[ 14%] Linking CXX executable test-class_parser
[ 14%] Built target test-class_parser
Scanning dependencies of target test-algorithms
[ 15%] Building CXX object test/CMakeFiles/test-algorithms.dir/src/unit-algorithms.cpp.o
[ 16%] Linking CXX executable test-algorithms
[ 16%] Built target test-algorithms
Scanning dependencies of target test-udt
[ 18%] Building CXX object test/CMakeFiles/test-udt.dir/src/unit-udt.cpp.o
[ 19%] Linking CXX executable test-udt
[ 19%] Built target test-udt
Scanning dependencies of target test-meta
[ 20%] Building CXX object test/CMakeFiles/test-meta.dir/src/unit-meta.cpp.o
[ 22%] Linking CXX executable test-meta
[ 22%] Built target test-meta
Scanning dependencies of target test-comparison
[ 23%] Building CXX object test/CMakeFiles/test-comparison.dir/src/unit-comparison.cpp.o
[ 24%] Linking CXX executable test-comparison
[ 24%] Built target test-comparison
Scanning dependencies of target test-modifiers
[ 25%] Building CXX object test/CMakeFiles/test-modifiers.dir/src/unit-modifiers.cpp.o
[ 27%] Linking CXX executable test-modifiers
[ 27%] Built target test-modifiers
Scanning dependencies of target test-unicode
[ 28%] Building CXX object test/CMakeFiles/test-unicode.dir/src/unit-unicode.cpp.o
[ 29%] Linking CXX executable test-unicode
[ 29%] Built target test-unicode
Scanning dependencies of target test-reference_access
[ 31%] Building CXX object test/CMakeFiles/test-reference_access.dir/src/unit-reference_access.cpp.o
[ 32%] Linking CXX executable test-reference_access
[ 32%] Built target test-reference_access
Scanning dependencies of target test-class_const_iterator
[ 33%] Building CXX object test/CMakeFiles/test-class_const_iterator.dir/src/unit-class_const_iterator.cpp.o
[ 35%] Linking CXX executable test-class_const_iterator
[ 35%] Built target test-class_const_iterator
Scanning dependencies of target test-convenience
[ 36%] Building CXX object test/CMakeFiles/test-convenience.dir/src/unit-convenience.cpp.o
[ 37%] Linking CXX executable test-convenience
[ 37%] Built target test-convenience
Scanning dependencies of target test-class_iterator
[ 38%] Building CXX object test/CMakeFiles/test-class_iterator.dir/src/unit-class_iterator.cpp.o
[ 40%] Linking CXX executable test-class_iterator
[ 40%] Built target test-class_iterator
Scanning dependencies of target test-to_chars
[ 41%] Building CXX object test/CMakeFiles/test-to_chars.dir/src/unit-to_chars.cpp.o
[ 42%] Linking CXX executable test-to_chars
[ 42%] Built target test-to_chars
Scanning dependencies of target test-inspection
[ 44%] Building CXX object test/CMakeFiles/test-inspection.dir/src/unit-inspection.cpp.o
[ 45%] Linking CXX executable test-inspection
[ 45%] Built target test-inspection
Scanning dependencies of target test-iterators1
[ 46%] Building CXX object test/CMakeFiles/test-iterators1.dir/src/unit-iterators1.cpp.o
[ 48%] Linking CXX executable test-iterators1
[ 48%] Built target test-iterators1
Scanning dependencies of target test-json_patch
[ 49%] Building CXX object test/CMakeFiles/test-json_patch.dir/src/unit-json_patch.cpp.o
[ 50%] Linking CXX executable test-json_patch
[ 50%] Built target test-json_patch
Scanning dependencies of target test-constructor1
[ 51%] Building CXX object test/CMakeFiles/test-constructor1.dir/src/unit-constructor1.cpp.o
[ 53%] Linking CXX executable test-constructor1
[ 53%] Built target test-constructor1
Scanning dependencies of target test-readme
[ 54%] Building CXX object test/CMakeFiles/test-readme.dir/src/unit-readme.cpp.o
[ 55%] Linking CXX executable test-readme
[ 55%] Built target test-readme
Scanning dependencies of target test-json_pointer
[ 57%] Building CXX object test/CMakeFiles/test-json_pointer.dir/src/unit-json_pointer.cpp.o
[ 58%] Linking CXX executable test-json_pointer
[ 58%] Built target test-json_pointer
Scanning dependencies of target test-serialization
[ 59%] Building CXX object test/CMakeFiles/test-serialization.dir/src/unit-serialization.cpp.o
/root/json/test/src/unit-serialization.cpp(71): warning #1478: function "nlohmann::operator>>(const nlohmann::basic_json<std::map, std::vector, std::__cxx11::string, bool, int64_t={long}, uint64_t={unsigned long}, double, std::allocator, nlohmann::adl_serializer> &, std::ostream &)" (declared at line 15515 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              j >> ss;
                ^

/root/json/test/src/unit-serialization.cpp(80): warning #1478: function "nlohmann::operator>>(const nlohmann::basic_json<std::map, std::vector, std::__cxx11::string, bool, int64_t={long}, uint64_t={unsigned long}, double, std::allocator, nlohmann::adl_serializer> &, std::ostream &)" (declared at line 15515 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              j >> ss;
                ^

/root/json/test/src/unit-serialization.cpp(91): warning #1478: function "nlohmann::operator>>(const nlohmann::basic_json<std::map, std::vector, std::__cxx11::string, bool, int64_t={long}, uint64_t={unsigned long}, double, std::allocator, nlohmann::adl_serializer> &, std::ostream &)" (declared at line 15515 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              j >> ss;
                ^

[ 61%] Linking CXX executable test-serialization
[ 61%] Built target test-serialization
Scanning dependencies of target test-constructor2
[ 62%] Building CXX object test/CMakeFiles/test-constructor2.dir/src/unit-constructor2.cpp.o
[ 63%] Linking CXX executable test-constructor2
[ 63%] Built target test-constructor2
Scanning dependencies of target test-iterators2
[ 64%] Building CXX object test/CMakeFiles/test-iterators2.dir/src/unit-iterators2.cpp.o
[ 66%] Linking CXX executable test-iterators2
[ 66%] Built target test-iterators2
Scanning dependencies of target test-concepts
[ 67%] Building CXX object test/CMakeFiles/test-concepts.dir/src/unit-concepts.cpp.o
[ 68%] Linking CXX executable test-concepts
[ 68%] Built target test-concepts
Scanning dependencies of target test-ubjson
[ 70%] Building CXX object test/CMakeFiles/test-ubjson.dir/src/unit-ubjson.cpp.o
[ 71%] Linking CXX executable test-ubjson
[ 71%] Built target test-ubjson
Scanning dependencies of target test-cbor
[ 72%] Building CXX object test/CMakeFiles/test-cbor.dir/src/unit-cbor.cpp.o
[ 74%] Linking CXX executable test-cbor
[ 74%] Built target test-cbor
Scanning dependencies of target test-capacity
[ 75%] Building CXX object test/CMakeFiles/test-capacity.dir/src/unit-capacity.cpp.o
[ 76%] Linking CXX executable test-capacity
[ 76%] Built target test-capacity
Scanning dependencies of target test-allocator
[ 77%] Building CXX object test/CMakeFiles/test-allocator.dir/src/unit-allocator.cpp.o
[ 79%] Linking CXX executable test-allocator
[ 79%] Built target test-allocator
Scanning dependencies of target test-noexcept
[ 80%] Building CXX object test/CMakeFiles/test-noexcept.dir/src/unit-noexcept.cpp.o
[ 81%] Linking CXX executable test-noexcept
[ 81%] Built target test-noexcept
Scanning dependencies of target test-items
[ 83%] Building CXX object test/CMakeFiles/test-items.dir/src/unit-items.cpp.o
/root/json/test/src/unit-items.cpp(43): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto i : json::iterator_wrapper(j))
                                  ^

/root/json/test/src/unit-items.cpp(76): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto& i : json::iterator_wrapper(j))
                                   ^

/root/json/test/src/unit-items.cpp(120): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto i : json::iterator_wrapper(j))
                                        ^

/root/json/test/src/unit-items.cpp(153): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto& i : json::iterator_wrapper(j))
                                         ^

/root/json/test/src/unit-items.cpp(189): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto i : json::iterator_wrapper(j))
                                  ^

/root/json/test/src/unit-items.cpp(222): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto& i : json::iterator_wrapper(j))
                                   ^

/root/json/test/src/unit-items.cpp(255): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto i : json::iterator_wrapper(j))
                                        ^

/root/json/test/src/unit-items.cpp(288): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto& i : json::iterator_wrapper(j))
                                         ^

/root/json/test/src/unit-items.cpp(324): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto i : json::iterator_wrapper(j))
                                  ^

/root/json/test/src/unit-items.cpp(357): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto& i : json::iterator_wrapper(j))
                                   ^

/root/json/test/src/unit-items.cpp(401): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto i : json::iterator_wrapper(j))
                                        ^

/root/json/test/src/unit-items.cpp(434): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto& i : json::iterator_wrapper(j))
                                         ^

/root/json/test/src/unit-items.cpp(470): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto i : json::iterator_wrapper(j))
                                  ^

/root/json/test/src/unit-items.cpp(503): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto& i : json::iterator_wrapper(j))
                                   ^

/root/json/test/src/unit-items.cpp(536): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto i : json::iterator_wrapper(j))
                                        ^

/root/json/test/src/unit-items.cpp(569): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto& i : json::iterator_wrapper(j))
                                         ^

/root/json/test/src/unit-items.cpp(605): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto i : json::iterator_wrapper(j))
                                  ^

/root/json/test/src/unit-items.cpp(620): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto& i : json::iterator_wrapper(j))
                                   ^

/root/json/test/src/unit-items.cpp(641): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto i : json::iterator_wrapper(j))
                                        ^

/root/json/test/src/unit-items.cpp(656): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13861 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto& i : json::iterator_wrapper(j))
                                         ^

/root/json/test/src/unit-items.cpp(674): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto i : json::iterator_wrapper(j))
                                  ^

/root/json/test/src/unit-items.cpp(689): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (auto& i : json::iterator_wrapper(j))
                                   ^

/root/json/test/src/unit-items.cpp(704): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto i : json::iterator_wrapper(j))
                                        ^

/root/json/test/src/unit-items.cpp(719): warning #1478: function "nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::iterator_wrapper(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::const_reference) [with ObjectType=std::map, ArrayType=std::vector, StringType=std::__cxx11::string,
          BooleanType=bool, NumberIntegerType=int64_t={long}, NumberUnsignedType=uint64_t={unsigned long}, NumberFloatType=double, AllocatorType=std::allocator, JSONSerializer=nlohmann::adl_serializer]" (declared at line 13870 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              for (const auto& i : json::iterator_wrapper(j))
                                         ^

[ 84%] Linking CXX executable test-items
[ 84%] Built target test-items
Scanning dependencies of target test-regression
[ 85%] Building CXX object test/CMakeFiles/test-regression.dir/src/unit-regression.cpp.o
[ 87%] Linking CXX executable test-regression
[ 87%] Built target test-regression
Scanning dependencies of target test-class_lexer
[ 88%] Building CXX object test/CMakeFiles/test-class_lexer.dir/src/unit-class_lexer.cpp.o
[ 89%] Linking CXX executable test-class_lexer
[ 89%] Built target test-class_lexer
Scanning dependencies of target test-deserialization
[ 90%] Building CXX object test/CMakeFiles/test-deserialization.dir/src/unit-deserialization.cpp.o
/root/json/test/src/unit-deserialization.cpp(72): warning #1478: function "nlohmann::operator<<(nlohmann::basic_json<std::map, std::vector, std::__cxx11::string, bool, int64_t={long}, uint64_t={unsigned long}, double, std::allocator, nlohmann::adl_serializer> &, std::istream &)" (declared at line 15701 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              j << ss;
                ^

/root/json/test/src/unit-deserialization.cpp(129): warning #1478: function "nlohmann::operator<<(nlohmann::basic_json<std::map, std::vector, std::__cxx11::string, bool, int64_t={long}, uint64_t={unsigned long}, double, std::allocator, nlohmann::adl_serializer> &, std::istream &)" (declared at line 15701 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              CHECK_THROWS_AS(j << ss1, json::parse_error&);
              ^

/root/json/test/src/unit-deserialization.cpp(130): warning #1478: function "nlohmann::operator<<(nlohmann::basic_json<std::map, std::vector, std::__cxx11::string, bool, int64_t={long}, uint64_t={unsigned long}, double, std::allocator, nlohmann::adl_serializer> &, std::istream &)" (declared at line 15701 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              CHECK_THROWS_WITH(j << ss2,
              ^

/root/json/test/src/unit-deserialization.cpp(532): warning #1478: function "nlohmann::operator<<(nlohmann::basic_json<std::map, std::vector, std::__cxx11::string, bool, int64_t={long}, uint64_t={unsigned long}, double, std::allocator, nlohmann::adl_serializer> &, std::istream &)" (declared at line 15701 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              j << s;
                ^

/root/json/test/src/unit-deserialization.cpp(534): warning #1478: function "nlohmann::operator<<(nlohmann::basic_json<std::map, std::vector, std::__cxx11::string, bool, int64_t={long}, uint64_t={unsigned long}, double, std::allocator, nlohmann::adl_serializer> &, std::istream &)" (declared at line 15701 of "/root/json/single_include/nlohmann/json.hpp") was declared deprecated
              j << s;
                ^

[ 92%] Linking CXX executable test-deserialization
[ 92%] Built target test-deserialization
Scanning dependencies of target test-pointer_access
[ 93%] Building CXX object test/CMakeFiles/test-pointer_access.dir/src/unit-pointer_access.cpp.o
[ 94%] Linking CXX executable test-pointer_access
[ 94%] Built target test-pointer_access
Scanning dependencies of target test-conversions
[ 96%] Building CXX object test/CMakeFiles/test-conversions.dir/src/unit-conversions.cpp.o
[ 97%] Linking CXX executable test-conversions
[ 97%] Built target test-conversions
Scanning dependencies of target test-testsuites
[ 98%] Building CXX object test/CMakeFiles/test-testsuites.dir/src/unit-testsuites.cpp.o
[100%] Linking CXX executable test-testsuites
[100%] Built target test-testsuites

Note the deprecation warnings are expected - the respective functions will be removed with the 4.0.0 release.

Some tests fail:

89% tests passed, 8 tests failed out of 76

Label Time Summary:
all        = 126.92 sec (38 tests)
default    =   3.48 sec (38 tests)

Total Test time (real) = 130.43 sec

The following tests FAILED:
	 19 - test-regression_default (Failed)
	 20 - test-regression_all (Failed)
	 33 - test-json_patch_default (Failed)
	 34 - test-json_patch_all (Failed)
	 41 - test-testsuites_default (Failed)
	 42 - test-testsuites_all (Failed)
	 49 - test-to_chars_default (OTHER_FAULT)
	 50 - test-to_chars_all (OTHER_FAULT)

but this seems unrelated to this issue.

What exactly are you compiling? What are your flags?

@nlohmann nlohmann added state: needs more info the author of the issue needs to provide more details and removed state: help needed the issue needs help to proceed labels Mar 6, 2018
@nlohmann
Copy link
Owner

@tomqt Could you provide more information like the program you are compiling or the compiler flags?

@nlohmann nlohmann added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Apr 2, 2018
@stale stale bot closed this as completed Apr 9, 2018
@stefashkaa
Copy link

I have a similar problem using the ICPC compiler.
I use the following flags:
icpc -qopenmp -Wall -otarget/main-uname -m main.cpp
Could you help me?
Best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: icc related to Intel compiler state: needs more info the author of the issue needs to provide more details state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated
Projects
None yet
Development

No branches or pull requests

3 participants