-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
/usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:86:47: error: too few template arguments for class template 'json_sax_dom_parser'
86 | class JsonParser : public nlohmann::detail::json_sax_dom_parser<JSON> {
| ^
/usr/local/include/nlohmann/detail/input/json_sax.hpp:167:7: note: template is declared here
166 | template<typename BasicJsonType, typename InputAdapterType>
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167 | class json_sax_dom_parser
| ^
/usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:89:29: error: too few template arguments for class template 'json_sax_dom_parser'
89 | : nlohmann::detail::json_sax_dom_parser<JSON>(j, false) {}
| ^
/usr/local/include/nlohmann/detail/input/json_sax.hpp:167:7: note: template is declared here
166 | template<typename BasicJsonType, typename InputAdapterType>
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167 | class json_sax_dom_parser
| ^
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:40:
In file included from /usr/local/include/nlohmann/detail/input/binary_reader.hpp:32:
/usr/local/include/nlohmann/detail/meta/is_sax.hpp:119:19: error: static assertion failed due to requirement 'is_same<bool, nlohmann::detail::nonesuch>::value': Missing/invalid function: bool null()
119 | static_assert(is_detected_exact<bool, null_function_t, SAX>::value,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/nlohmann/detail/input/parser.hpp:163:15: note: in instantiation of template class 'nlohmann::detail::is_sax_static_asserts<JsonParser, nlohmann::basic_json<>>' requested here
163 | (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
| ^
/usr/local/include/nlohmann/json.hpp:4117:72: note: in instantiation of function template specialization 'nlohmann::detail::parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<std::__wrap_iter<const char *>>>::sax_parse<JsonParser>' requested here
4117 | ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
| ^
/usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:99:16: note: in instantiation of function template specialization 'nlohmann::basic_json<>::sax_parse<std::string &, JsonParser>' requested here
99 | return JSON::sax_parse(input, &parser);
| ^
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:197:56: error: no member named 'start_object' in 'JsonParser'
197 | if (JSON_HEDLEY_UNLIKELY(!sax->start_object(detail::unknown_size())))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
/usr/local/include/nlohmann/detail/input/parser.hpp:164:29: note: in instantiation of function template specialization 'nlohmann::detail::parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<std::__wrap_iter<const char *>>>::sax_parse_internal<JsonParser>' requested here
164 | const bool result = sax_parse_internal(sax);
| ^
/usr/local/include/nlohmann/json.hpp:4117:72: note: in instantiation of function template specialization 'nlohmann::detail::parser<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<std::__wrap_iter<const char *>>>::sax_parse<JsonParser>' requested here
4117 | ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
| ^
/usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:99:16: note: in instantiation of function template specialization 'nlohmann::basic_json<>::sax_parse<std::string &, JsonParser>' requested here
99 | return JSON::sax_parse(input, &parser);
| ^
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:205:60: error: no member named 'end_object' in 'JsonParser'
205 | if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:219:56: error: no member named 'key' in 'JsonParser'
219 | if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:242:56: error: no member named 'start_array' in 'JsonParser'
242 | if (JSON_HEDLEY_UNLIKELY(!sax->start_array(detail::unknown_size())))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:250:60: error: no member named 'end_array' in 'JsonParser'
250 | if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:275:56: error: no member named 'number_float' in 'JsonParser'
275 | if (JSON_HEDLEY_UNLIKELY(!sax->number_float(res, m_lexer.get_string())))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:285:56: error: no member named 'boolean' in 'JsonParser'
285 | if (JSON_HEDLEY_UNLIKELY(!sax->boolean(false)))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:294:56: error: no member named 'null' in 'JsonParser'
294 | if (JSON_HEDLEY_UNLIKELY(!sax->null()))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:303:56: error: no member named 'boolean' in 'JsonParser'
303 | if (JSON_HEDLEY_UNLIKELY(!sax->boolean(true)))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:312:56: error: no member named 'number_integer' in 'JsonParser'
312 | if (JSON_HEDLEY_UNLIKELY(!sax->number_integer(m_lexer.get_number_integer())))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:321:56: error: no member named 'string' in 'JsonParser'
321 | if (JSON_HEDLEY_UNLIKELY(!sax->string(m_lexer.get_string())))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:330:56: error: no member named 'number_unsigned' in 'JsonParser'
330 | if (JSON_HEDLEY_UNLIKELY(!sax->number_unsigned(m_lexer.get_number_unsigned())))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:397:52: error: no member named 'end_array' in 'JsonParser'
397 | if (JSON_HEDLEY_UNLIKELY(!sax->end_array()))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:430:48: error: no member named 'key' in 'JsonParser'
430 | if (JSON_HEDLEY_UNLIKELY(!sax->key(m_lexer.get_string())))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:43:
/usr/local/include/nlohmann/detail/input/parser.hpp:451:48: error: no member named 'end_object' in 'JsonParser'
451 | if (JSON_HEDLEY_UNLIKELY(!sax->end_object()))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
In file included from /usr/ports/misc/json-tui/work/json-tui-1.4.0/src/main.cpp:10:
In file included from /usr/local/include/nlohmann/json.hpp:40:
/usr/local/include/nlohmann/detail/input/binary_reader.hpp:175:40: error: no member named 'start_object' in 'JsonParser'
175 | if (JSON_HEDLEY_UNLIKELY(!sax->start_object(detail::unknown_size())))
| ~~~ ^
/usr/local/include/nlohmann/thirdparty/hedley/hedley.hpp:1359:94: note: expanded from macro 'JSON_HEDLEY_UNLIKELY'
1359 | # define JSON_HEDLEY_UNLIKELY(expr) __builtin_expect (!!(expr), 0 )
| ^~~~
/usr/local/include/nlohmann/detail/input/binary_reader.hpp:118:26: note: in instantiation of member function 'nlohmann::detail::binary_reader<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<std::__wrap_iter<const char *>>, JsonParser>::parse_bson_internal' requested here
118 | result = parse_bson_internal();
| ^
/usr/local/include/nlohmann/json.hpp:4118:94: note: in instantiation of member function 'nlohmann::detail::binary_reader<nlohmann::basic_json<>, nlohmann::detail::iterator_input_adapter<std::__wrap_iter<const char *>>, JsonParser>::sax_parse' requested here
4118 | : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia), format).sax_parse(format, sax, strict);
| ^
I need to update the FreeBSD port, therefore FetchConten can't be used because downloads aren't allowed on package builders.
Version: 1.4.0
clang-19
Metadata
Metadata
Assignees
Labels
No labels