Date: Tue, 14 Aug 2018 21:48:42 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 230355] [exp-run] Against projects/clang700-import branch Message-ID: <bug-230355-7788-RS9TiOgkKD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-230355-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-230355-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230355 --- Comment #9 from commit-hook@freebsd.org --- A commit references this bug: Author: jbeich Date: Tue Aug 14 21:48:01 UTC 2018 New revision: 477206 URL: https://svnweb.freebsd.org/changeset/ports/477206 Log: devel/nlohmann-json: unbreak consumers with libc++ 7 In file included from test/src/unit-conversions.cpp:32: single_include/nlohmann/json.hpp:1201:9: error: static_assert failed "cou= ld not find from_json() method in T's namespace" static_assert(sizeof(BasicJsonType) =3D=3D 0, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ single_include/nlohmann/json.hpp:1216:16: note: in instantiation of funct= ion template specialization 'nlohmann::detail::from_json_fn::call<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long, unsigned long, doubl= e, std::allocator, adl_serializer>, std::__1::basic_string_view<char, std::__1::char_traits<char> > >' requested here return call(j, val, priority_tag<1> {}); ^ single_include/nlohmann/json.hpp:9660:9: note: in instantiation of functi= on template specialization 'nlohmann::detail::from_json_fn::operator()<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long, unsigned long, doubl= e, std::allocator, adl_serializer>, std::__1::basic_string_view<char, std::__1::char_traits<char> > >' requested here ::nlohmann::from_json(std::forward<BasicJsonType>(j), val); ^ single_include/nlohmann/json.hpp:12181:36: note: in instantiation of func= tion template specialization 'nlohmann::adl_serializer<std::__1::basic_string_view<char, std::__1::char_traits<char> >, void>::from_json<const nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, b= ool, long, unsigned long, double, std::allocator, adl_serializer> &, std::__1::basic_string_view<char, std::__1::char_traits<char> > >' requested here JSONSerializer<ValueType>::from_json(*this, ret); ^ single_include/nlohmann/json.hpp:12443:16: note: in instantiation of func= tion template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>::get<std::__1::basic_string_view<char, std::__1::char_traits<char> >, std::__1::basic_string_view<char, std::__1::char_traits<char> >, 0>' requested here return get<ValueType>(); ^ /usr/include/c++/v1/string:875:29: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>::operator basic_string_view<std::__1::basic_string_view<char, std::__1::char_traits<c= har> >, 0>' requested here {__self_view __sv =3D __t; return assign(__sv);} ^ /usr/include/c++/v1/algorithm:1744:19: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=3D0 to see all) *__result =3D *__first; ^ single_include/nlohmann/json.hpp:1195:16: note: in instantiation of funct= ion template specialization 'nlohmann::detail::from_json<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>, std::__1::basic_string<char>, 0>' requested here return from_json(j, val); ^ single_include/nlohmann/json.hpp:1216:16: note: in instantiation of funct= ion template specialization 'nlohmann::detail::from_json_fn::call<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long, unsigned long, doubl= e, std::allocator, adl_serializer>, std::__1::valarray<std::__1::basic_string<char> > >' requested here return call(j, val, priority_tag<1> {}); ^ single_include/nlohmann/json.hpp:9660:9: note: in instantiation of functi= on template specialization 'nlohmann::detail::from_json_fn::operator()<nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long, unsigned long, doubl= e, std::allocator, adl_serializer>, std::__1::valarray<std::__1::basic_string<char> > >' requested here ::nlohmann::from_json(std::forward<BasicJsonType>(j), val); ^ single_include/nlohmann/json.hpp:12181:36: note: in instantiation of func= tion template specialization 'nlohmann::adl_serializer<std::__1::valarray<std::__1::basic_string<char> >, void>::from_json<const nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer> &, std::__1::valarray<std::__1::basic_string<char> > >' requested here JSONSerializer<ValueType>::from_json(*this, ret); ^ test/src/unit-conversions.cpp:1042:20: note: in instantiation of function template specialization 'nlohmann::basic_json<std::map, std::vector, std::__1::basic_string<char>, bool, long, unsigned long, double, std::allocator, adl_serializer>::get<std::__1::valarray<std::__1::basic_string<char> >, std::__1::valarray<std::__1::basic_string<char> >, 0>' requested here j5.get<std::valarray<std::string>>(); ^ PR: 230355 Obtained from: upstream Changes: head/devel/nlohmann-json/files/ head/devel/nlohmann-json/files/patch-libc++7 --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230355-7788-RS9TiOgkKD>