Skip to content

Commit a201cc9

Browse files
committed
Doc update
1 parent d7007cf commit a201cc9

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

ChangeLog.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
master
2-
------
1+
v0.159.0
2+
--------
33

44
Bugs fixed:
55

@@ -11,11 +11,12 @@ Changes:
1111
- In the jsonpointer extension, the type names `json_ptr` and `wjson_ptr` have been deprecated and
1212
renamed to `json_pointer` and `wjson_pointer`.
1313

14-
- The json_pointer operators `/=` and `/` now support integers.
15-
1614
Enhancements:
1715

18-
- New override for `jsonpath::json_replace` that searches for all values that match a JSONPath expression and replaces them with the result of a given function, see [\#279](https://github.com/danielaparker/jsoncons/pull/279)
16+
- The json_pointer operators `/=` and `/` now support integers.
17+
18+
- New override for `jsonpath::json_replace` that searches for all values that match a JSONPath expression
19+
and replaces them with the result of a given function, see [\#279](https://github.com/danielaparker/jsoncons/pull/279)
1920

2021
- New factory function `jmespath::make_expression` to create compiled JMESPath expressions.
2122

doc/ref/jsonpointer/basic_json_pointer.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ First, appends the JSON Pointer separator `/`. Then appends the token s, escapin
5555
template <class IntegerType>
5656
basic_json_pointer& operator/=(IntegerType index)
5757
First, appends the JSON Pointer separator `/`. Then appends the token `index`.
58+
This overload only participates in overload resolution if IntegerType is an integer type.
5859
5960
basic_json_pointer& operator+=(const basic_json_pointer& ptr)
6061
Concatenates the current pointer and the specified pointer `ptr`.
@@ -81,16 +82,20 @@ Concatenates a JSON Pointer pointer and a string. Effectively returns basic_json
8182
template <class CharT,class IntegerType>
8283
basic_json_pointer<CharT> operator/(const basic_json_pointer<CharT>& lhs, IntegerType index);
8384
Concatenates a JSON Pointer pointer and an index. Effectively returns basic_json_pointer<CharT>(lhs) /= index.
85+
This overload only participates in overload resolution if IntegerType is an integer type.
8486
87+
template <class CharT,class IntegerType>
8588
basic_json_pointer<CharT> operator+( const basic_json_pointer<CharT>& lhs, const basic_json_pointer<CharT>& rhs );
8689
Concatenates two JSON Pointers. Effectively returns basic_json_pointer<CharT>(lhs) += rhs.
8790
91+
template <class CharT,class IntegerType>
8892
bool operator==(const basic_json_pointer<CharT>& lhs, const basic_json_pointer<CharT>& rhs);
8993
94+
template <class CharT,class IntegerType>
9095
bool operator!=(const basic_json_pointer<CharT>& lhs, const basic_json_pointer<CharT>& rhs);
9196
92-
std::basic_ostream<CharT>&
93-
operator<<(std::basic_ostream<CharT>& os, const basic_json_pointer<CharT>& ptr);
97+
template <class CharT,class IntegerType>
98+
std::basic_ostream<CharT>& operator<<(std::basic_ostream<CharT>& os, const basic_json_pointer<CharT>& ptr);
9499
Performs stream output
95100
96101
### Examples

include/jsoncons/config/version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <iostream>
1111

1212
#define JSONCONS_VERSION_MAJOR 0
13-
#define JSONCONS_VERSION_MINOR 158
13+
#define JSONCONS_VERSION_MINOR 159
1414
#define JSONCONS_VERSION_PATCH 0
1515

1616
namespace jsoncons {

0 commit comments

Comments
 (0)