|
1 | | -/* auto-generated on Sat Jun 20 21:50:03 PDT 2020. Do not edit! */ |
| 1 | +/* auto-generated on Sun Jun 21 11:49:12 PDT 2020. Do not edit! */ |
2 | 2 | /* begin file include/simdjson.h */ |
3 | 3 | #ifndef SIMDJSON_H |
4 | 4 | #define SIMDJSON_H |
@@ -3778,8 +3778,7 @@ class document_stream { |
3778 | 3778 | private: |
3779 | 3779 |
|
3780 | 3780 | document_stream &operator=(const document_stream &) = delete; // Disallow copying |
3781 | | - |
3782 | | - document_stream(document_stream &other) = delete; // Disallow copying |
| 3781 | + document_stream(const document_stream &other) = delete; // Disallow copying |
3783 | 3782 |
|
3784 | 3783 | /** |
3785 | 3784 | * Construct a document_stream. Does not allocate or parse anything until the iterator is |
@@ -3867,8 +3866,8 @@ class document_stream { |
3867 | 3866 | #endif // SIMDJSON_THREADS_ENABLED |
3868 | 3867 |
|
3869 | 3868 | friend class dom::parser; |
3870 | | - friend class simdjson_result<dom::document_stream>; |
3871 | | - friend class internal::simdjson_result_base<dom::document_stream>; |
| 3869 | + friend struct simdjson_result<dom::document_stream>; |
| 3870 | + friend struct internal::simdjson_result_base<dom::document_stream>; |
3872 | 3871 |
|
3873 | 3872 | }; // class document_stream |
3874 | 3873 |
|
@@ -5574,7 +5573,6 @@ really_inline dom::document_stream::iterator simdjson_result<dom::document_strea |
5574 | 5573 | } |
5575 | 5574 | #endif // SIMDJSON_EXCEPTIONS |
5576 | 5575 |
|
5577 | | - |
5578 | 5576 | } // namespace simdjson |
5579 | 5577 | #endif // SIMDJSON_INLINE_DOCUMENT_STREAM_H |
5580 | 5578 | /* end file include/simdjson/inline/document_stream.h */ |
@@ -6302,7 +6300,9 @@ really_inline void simdjson_result_base<T>::tie(T &value, error_code &error) && |
6302 | 6300 |
|
6303 | 6301 | template<typename T> |
6304 | 6302 | WARN_UNUSED really_inline error_code simdjson_result_base<T>::get(T &value) && noexcept { |
6305 | | - return std::forward<simdjson_result_base<T>>(*this).get(value); |
| 6303 | + error_code error; |
| 6304 | + std::forward<simdjson_result_base<T>>(*this).tie(value, error); |
| 6305 | + return error; |
6306 | 6306 | } |
6307 | 6307 |
|
6308 | 6308 | template<typename T> |
|
0 commit comments