Daniel Lemire
8a8eea53a2
Prefixing macros (issue 1035) ( #1124 )
...
* Renaming partially done.
* More prefixing.
* I thought that this was fixed.
* Missed one.
* Missed a few.
* Missed another one.
* Minor fixes.
2020-08-18 18:25:36 -04:00
Daniel Lemire
09bd7e8ef8
Verification and fix for issue 1063 (JSON Pointers) ( #1064 )
...
* Specification is not followed.
* Fixes.
* Do not pass string_view by reference.
* Better documentation.
* The example is written for exceptions.
* Better documentation.
* Updating with deprecation.
* Updating example.
* Updating example.
2020-08-18 17:23:18 -04:00
Daniel Lemire
fc15147cf5
This allows the users to disable threading. ( #1122 )
...
* This allows the users to disable threading.
* This would disable bash scripts under FreeBSD. (#1118 )
* This would disable bash scripts under FreeBSD.
* Let us also disable GIT.
* Let us try to just disable GIT
* Nope. We must have both bash and git disabled.
* This allows the users to disable threading.
2020-08-18 16:43:08 -04:00
John Keiser
1b69612246
Remove information about nonexistent computed gotos :)
2020-08-10 16:29:24 -07:00
Daniel Lemire
83615ff351
Fixes issue 1088 ( #1096 )
2020-08-06 11:42:13 -04:00
Daniel Lemire
75c75ac00c
This is dead code. ( #1095 )
2020-08-05 16:48:10 -04:00
John Keiser
c0010f60e6
Add view support to simdjson_result<array/object>
2020-08-04 13:17:23 -07:00
John Keiser
75301e4cf5
Fix C++20 compilation
2020-08-04 13:17:23 -07:00
John Keiser
875c8fdcbe
Merge pull request #1071 from pps83/quick-example-at-the-top-of-simdjson.h
...
Add a quick example at the top of simdjson.h
2020-08-04 11:07:21 -07:00
Pavel P
164fcb49d9
+ reformat sample code
2020-08-03 19:48:41 +06:00
Daniel Lemire
f6a3205d10
Avoid allocations in global objects ( #1082 )
2020-07-30 13:14:56 -04:00
Daniel Lemire
f873a140ce
Tweaking
2020-07-27 16:24:27 -04:00
PavelP
36dfc5bbd1
Add missing strings.h include for non-windows builds (required by strcasecmp) ( #1067 )
...
addresses #1066
2020-07-27 16:23:06 -04:00
Daniel Lemire
f80668e87f
This removes the crazy alignment requirements. ( #1073 )
...
* This removes the crazy alignment requirements.
2020-07-27 16:19:01 -04:00
Pavel P
1513cdf7bc
Add a quick example at the top of simdjson.h
2020-07-26 14:31:03 -04:00
Daniel Lemire
e33af1a3f8
Adding strings.h header. ( #1074 )
2020-07-25 15:27:19 -04:00
John Keiser
af8b52e7e8
Target region for entire compilation of an implementation
2020-07-24 02:48:25 -07:00
Daniel Lemire
796588900c
Reenabling C++ 20 features. ( #1059 )
2020-07-21 18:12:04 -04:00
Daniel Lemire
e2cfcc52b3
Disabling cxx20 ( #1058 )
...
* Disabling C++ 20 features.
* Updating single-header.
2020-07-21 17:15:31 -04:00
Daniel Lemire
fc8a46025e
Better documentation of default_batch_size ( #1056 )
...
* Better documentation of default_batch_size
* Retweaking.
2020-07-21 15:15:21 -04:00
Joe Jevnik
d2bea0c228
Add support for C++ 20 ranges. ( #1050 )
...
C++ 20 adds a new feature called "ranges", which provides components for dealing
with sequences of values: https://en.cppreference.com/w/cpp/ranges .
A range is like a normal object containing `begin` and `end`, except there are
also composable operations like maps, filters, joins, etc.
The iterator objects returned by a range's `begin` and `end` require a more
strict set of operations than is needed for a range-for loop.
This PR adds the extra operations needed to support turning `dom::array` and
`dom::object` into a range.
This PR does not depend on any C++ 20 behavior, the added operators are all
valid C++ 11, and are already part of the LegacyIterator concepts.
This PR adds extra code behind: `#if defined(__cpp_lib_ranges)` guards, which is
the new C++ 20 specified feature test macro for ranges support. When ranges
support is detected, extra compile time checks are added to ensure that
`dom::array` and `dom::object` satisfy the range concept. No runtime tests have
been added yet because these compile time checks should be sufficient.
If desired, the `static_assert` code could be moved out of the actual code
headers and put into a test file.
2020-07-21 13:27:39 -04:00
Vitaly Baranov
6bd64c6873
Fix clang warning -Wused-but-marked-unused. ( #1042 )
...
* Fix clang warning -Wused-but-marked-unused.
* Fix build.
2020-07-15 13:28:51 -04:00
Daniel Lemire
74870a8189
Fixing issue 1013. ( #1016 )
...
* Fixing issue 1013.
* Bumping to 0.4.6
Co-authored-by: Daniel Lemire <lemire@gmai.com>
2020-07-01 14:14:51 -04:00
Daniel Lemire
0ef4d90ad0
Fix for issue 1014. ( #1015 )
...
* Fix for issue 1014.
* Explanation.
Co-authored-by: Daniel Lemire <lemire@gmai.com>
2020-06-30 19:36:26 -04:00
Daniel Lemire
e38fe3d361
Version update
2020-06-30 09:41:20 -04:00
Daniel Lemire
3faae67663
New release
2020-06-29 21:11:58 -04:00
Daniel Lemire
0ba76ac066
This enables building the library under Visual Studio 2015 ( #1002 )
...
Co-authored-by: Daniel Lemire <lemire@gmai.com>
2020-06-29 08:43:47 -04:00
Daniel Lemire
077907b7c3
Preparing a new patch release.
2020-06-28 12:40:13 -04:00
Daniel Lemire
6b85b9a416
Merge pull request #998 from simdjson/issue976
...
Final steps.
2020-06-26 21:05:06 -04:00
Daniel Lemire
4582a13360
Final steps.
2020-06-26 20:31:24 -04:00
Daniel Lemire
3a064535ae
Merge pull request #994 from simdjson/issue976
...
Fix for issue 976 (something like 32-bit support)
2020-06-26 20:02:15 -04:00
Daniel Lemire
444ec4ad27
Stupid me
2020-06-26 19:29:28 -04:00
Daniel Lemire
94e910586d
Removing a cast.
2020-06-26 19:06:39 -04:00
Daniel Lemire
6c33f518a8
This introduces a new option to forcefully disable threads.
2020-06-26 13:23:44 -04:00
Daniel Lemire
88da62ba09
Better documentation in the code.
2020-06-26 13:02:12 -04:00
Daniel Lemire
b6997a56df
Patching things up and adding tests.
2020-06-26 12:15:16 -04:00
Daniel Lemire
2956bce047
Minor fixes to avoid 32-bit warnings.
2020-06-25 21:12:26 -04:00
Brendan Knapp
41f33ecbb9
Permit 32-bit GCC compilation
2020-06-25 17:07:17 -07:00
Daniel Lemire
86241e2871
Merge pull request #987 from simdjson/issue985
...
Removing optional since it is not C++11, and it is not used
2020-06-25 11:04:36 -04:00
Daniel Lemire
1b63a9a9b5
Removing optional since it is not C++11
2020-06-25 10:25:57 -04:00
Daniel Lemire
32348c2b0b
Elaborating.
2020-06-25 10:14:29 -04:00
Daniel Lemire
5e690c5d04
Fixing the string_view issue.
2020-06-25 10:02:10 -04:00
Daniel Lemire
e01f1434fb
Bumping up the version number
2020-06-23 20:55:52 -04:00
John Keiser
187084ce46
Merge pull request #970 from simdjson/jkeiser/singleheader-tests
...
Make singleheader tests be test-only
2020-06-23 17:07:03 -07:00
Daniel Lemire
544fa57641
Damn merge conflicts.
2020-06-23 19:15:47 -04:00
John Keiser
d9929edbc1
Run -Weffc++ in CI
2020-06-23 13:44:25 -07:00
Daniel Lemire
b84a3a0230
Merge branch 'master' into issue961
2020-06-23 14:33:06 -04:00
Daniel Lemire
49d70232f8
Merge pull request #969 from simdjson/dlemire/minor_pre0.4_cleaning
...
Very minor cleaning.
2020-06-23 14:30:47 -04:00
John Keiser
257089884f
Merge pull request #958 from simdjson/jkeiser/is
...
Make simdjson_result<element>.is() return bool
2020-06-23 09:51:37 -07:00
John Keiser
c650ea9765
Merge pull request #960 from simdjson/jkeiser/idiomatic-get
...
Convert simdjson to use .get()
2020-06-23 09:49:41 -07:00