We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75301e4 commit c0010f6Copy full SHA for c0010f6
include/simdjson/dom/array.h
@@ -177,10 +177,16 @@ inline std::ostream& operator<<(std::ostream& out, const simdjson_result<dom::ar
177
#if defined(__cpp_lib_ranges)
178
#include <ranges>
179
180
-namespace std::ranges {
+namespace std {
181
+namespace ranges {
182
template<>
183
inline constexpr bool enable_view<simdjson::dom::array> = true;
-}
184
+#if SIMDJSON_EXCEPTIONS
185
+template<>
186
+inline constexpr bool enable_view<simdjson::simdjson_result<simdjson::dom::array>> = true;
187
+#endif // SIMDJSON_EXCEPTIONS
188
+} // namespace ranges
189
+} // namespace std
190
#endif // defined(__cpp_lib_ranges)
191
192
#endif // SIMDJSON_DOM_ARRAY_H
include/simdjson/dom/object.h
@@ -284,13 +284,16 @@ inline std::ostream& operator<<(std::ostream& out, const simdjson_result<dom::ob
284
285
286
287
288
289
290
inline constexpr bool enable_view<simdjson::dom::object> = true;
291
-
292
-static_assert(std::ranges::view<simdjson::dom::object>);
293
-static_assert(std::ranges::sized_range<simdjson::dom::object>);
294
-#endif
+inline constexpr bool enable_view<simdjson::simdjson_result<simdjson::dom::object>> = true;
295
296
297
+#endif // defined(__cpp_lib_ranges)
298
299
#endif // SIMDJSON_DOM_OBJECT_H
include/simdjson/inline/array.h
@@ -174,6 +174,10 @@ inline std::ostream& operator<<(std::ostream& out, const simdjson_result<dom::ar
174
175
static_assert(std::ranges::view<simdjson::dom::array>);
176
static_assert(std::ranges::sized_range<simdjson::dom::array>);
+static_assert(std::ranges::view<simdjson::simdjson_result<simdjson::dom::array>>);
+static_assert(std::ranges::sized_range<simdjson::simdjson_result<simdjson::dom::array>>);
#endif // SIMDJSON_INLINE_ARRAY_H
include/simdjson/inline/object.h
@@ -272,4 +272,13 @@ inline std::ostream& operator<<(std::ostream& out, const simdjson_result<dom::ob
272
273
} // namespace simdjson
274
275
+#if defined(__cpp_lib_ranges)
276
+static_assert(std::ranges::view<simdjson::dom::object>);
277
+static_assert(std::ranges::sized_range<simdjson::dom::object>);
278
279
+static_assert(std::ranges::view<simdjson::simdjson_result<simdjson::dom::object>>);
280
+static_assert(std::ranges::sized_range<simdjson::simdjson_result<simdjson::dom::object>>);
281
282
283
+
#endif // SIMDJSON_INLINE_OBJECT_H
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments