Skip to content

Commit e2cfcc5

Browse files
authored
Disabling cxx20 (simdjson#1058)
* Disabling C++ 20 features. * Updating single-header.
1 parent fc8a460 commit e2cfcc5

File tree

5 files changed

+833
-1065
lines changed

5 files changed

+833
-1065
lines changed

include/simdjson/dom/array.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ inline std::ostream& operator<<(std::ostream& out, const simdjson_result<dom::ar
174174

175175
} // namespace simdjson
176176

177+
/*
177178
#if defined(__cpp_lib_ranges)
178179
#include <ranges>
179180
@@ -185,5 +186,6 @@ inline constexpr bool enable_view<simdjson::dom::array> = true;
185186
static_assert(std::ranges::view<simdjson::dom::array>);
186187
static_assert(std::ranges::sized_range<simdjson::dom::array>);
187188
#endif
189+
*/
188190

189191
#endif // SIMDJSON_DOM_ARRAY_H

include/simdjson/dom/object.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ inline std::ostream& operator<<(std::ostream& out, const simdjson_result<dom::ob
281281

282282
} // namespace simdjson
283283

284+
/*
284285
#if defined(__cpp_lib_ranges)
285286
#include <ranges>
286287
@@ -292,5 +293,6 @@ inline constexpr bool enable_view<simdjson::dom::object> = true;
292293
static_assert(std::ranges::view<simdjson::dom::object>);
293294
static_assert(std::ranges::sized_range<simdjson::dom::object>);
294295
#endif
296+
*/
295297

296298
#endif // SIMDJSON_DOM_OBJECT_H

singleheader/amalgamate_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on Sun 19 Jul 2020 11:55:45 PM EDT. Do not edit! */
1+
/* auto-generated on Tue 21 Jul 2020 16:54:49 EDT. Do not edit! */
22

33
#include <iostream>
44
#include "simdjson.h"

0 commit comments

Comments
 (0)