@@ -84,7 +84,7 @@ namespace jsonifier_internal {
8484
8585 template <typename class_type_new, typename parse_context_type> struct json_entity_parse_base {
8686 JSONIFIER_ALWAYS_INLINE virtual bool processIndex (class_type_new& value, parse_context_type& context) = 0;
87- JSONIFIER_ALWAYS_INLINE virtual ~json_entity_parse_base () noexcept = default ;
87+ JSONIFIER_ALWAYS_INLINE virtual ~json_entity_parse_base () noexcept = default ;
8888 };
8989
9090 template <jsonifier::parse_options options, jsonifier::string_view nameNew, jsonifier::json_type typeNew, auto ptrNew, typename parse_context_type, typename buffer_type,
@@ -184,8 +184,8 @@ namespace jsonifier_internal {
184184 typename parse_context_type, typename buffer_type, auto tuple, bool minifiedOrInsideRepeated>
185185 struct construct_json_entity_parse_final {
186186 static constexpr auto originalTupleValue{ jsonifier_internal::get<index>(tuple) };
187- using type =
188- json_entity_parse_type<options, originalTupleValue.name, originalTupleValue.type, originalTupleValue.memberPtr, parse_context_type, buffer_type, minifiedOrInsideRepeated>;
187+ using type = json_entity_parse_type<options, originalTupleValue.name, originalTupleValue.type, originalTupleValue.memberPtr, parse_context_type, buffer_type,
188+ minifiedOrInsideRepeated>;
189189 };
190190
191191 template <template <auto , auto , auto , auto , typename , typename , bool > typename json_entity_parse_type, jsonifier::parse_options options, size_t index, typename class_type,
@@ -211,27 +211,24 @@ namespace jsonifier_internal {
211211
212212 template <typename parse_context_type, typename buffer_type, typename value_type, jsonifier::parse_options options, bool ... values> struct index_processor_parse ;
213213
214- template <jsonifier::parse_options options, auto tupleElem, typename value_type, typename context_type>
215- struct parse_index_processor_impl {
216- JSONIFIER_ALWAYS_INLINE static void impl (const value_type& value,context_type& context) {
214+ template <jsonifier::parse_options options, auto tupleElem, typename value_type, typename context_type> struct parse_index_processor_impl {
215+ JSONIFIER_ALWAYS_INLINE static void impl (const value_type& value, context_type& context) {
217216 }
218217 };
219218
220- template <jsonifier::parse_options options, bool minified, typename value_type, typename context_type, typename ... value_holder_types>
221- struct parser_core ;
219+ template <jsonifier::parse_options options, bool minified, typename value_type, typename context_type, typename ... value_holder_types> struct parser_core ;
222220
223- template <jsonifier::parse_options options, bool minified, typename value_type, typename context_type, typename value_holder_type,
224- typename ... value_holder_types>
221+ template <jsonifier::parse_options options, bool minified, typename value_type, typename context_type, typename value_holder_type, typename ... value_holder_types>
225222 struct parser_core <options, minified, value_type, context_type, value_holder_type, value_holder_types...> {
226- JSONIFIER_INLINE static void processIndices (const value_type& value,context_type& context) {
223+ JSONIFIER_INLINE static void processIndices (const value_type& value, context_type& context) {
227224 parse_index_processor_impl<options, value_holder_type::value, value_type, context_type>::impl (value, context);
228225 parser_core<options, minified, value_type, context_type, value_holder_types...>::processIndices (value, context);
229226 }
230227 };
231228
232229 template <jsonifier::parse_options options, bool minified, typename value_type, typename context_type, typename value_holder_type>
233230 struct parser_core <options, minified, value_type, context_type, value_holder_type> {
234- JSONIFIER_ALWAYS_INLINE static void processIndices (const value_type& value,context_type& context) {
231+ JSONIFIER_ALWAYS_INLINE static void processIndices (const value_type& value, context_type& context) {
235232 parse_index_processor_impl<options, value_holder_type::value, value_type, context_type>::impl (value, context);
236233 }
237234 };
@@ -240,17 +237,15 @@ namespace jsonifier_internal {
240237 static constexpr auto value{ valueNew };
241238 };
242239
243- template <jsonifier::parse_options options, bool minified, typename value_type, typename context_type, typename index_sequence, auto tuple>
244- struct get_parser_core ;
240+ template <jsonifier::parse_options options, bool minified, typename value_type, typename context_type, typename index_sequence, auto tuple> struct get_parser_core ;
245241
246242 template <jsonifier::parse_options options, bool minified, typename value_type, typename context_type, size_t ... I, auto tuple>
247243 struct get_parser_core <options, minified, value_type, context_type, std::index_sequence<I...>, tuple> {
248244 using type = parser_core<options, minified, value_type, context_type, value_holder<I, value_type, jsonifier_internal::get<I>(tuple)>...>;
249245 };
250246
251247 template <jsonifier::parse_options options, bool minified, typename value_type, typename context_type, auto value> using parser_core_t =
252- typename get_parser_core<options, minified, value_type, context_type, jsonifier_internal::tag_range<jsonifier_internal::tuple_size_v<decltype (value)>>,
253- value>::type;
248+ typename get_parser_core<options, minified, value_type, context_type, jsonifier_internal::tag_range<jsonifier_internal::tuple_size_v<decltype (value)>>, value>::type;
254249
255250 template <typename parse_context_type, typename buffer_type, typename value_type, jsonifier::parse_options options>
256251 struct index_processor_parse <parse_context_type, buffer_type, value_type, options, false > : derailleur<options, parse_context_type> {
@@ -575,9 +570,9 @@ namespace jsonifier_internal {
575570 JSONIFIER_SKIP_WS ();
576571 size_t wsSize{ static_cast <size_t >(context.iter - wsStart) };
577572 if (whitespaceTable[static_cast <uint8_t >(*(context.iter + wsSize))]) {
578- return parseObjects<true >(value, context, wsStart, wsSize);
573+ return parseObjects<value_type, true >(value, context, wsStart, wsSize);
579574 } else {
580- return parseObjects<false >(value, context, wsStart, wsSize);
575+ return parseObjects<value_type, false >(value, context, wsStart, wsSize);
581576 }
582577 } else {
583578 ++context.iter ;
0 commit comments