json_pointer.hpp: Mention more exception in documentation

Forgotten in dcd3a6c6 (move the catch of std::invalid_argument into
array_index(), 2020-03-23).
This commit is contained in:
Thomas Braun 2020-06-20 15:25:54 +02:00
parent 74c6e4295f
commit f0e73163f2
2 changed files with 4 additions and 0 deletions

View file

@ -325,6 +325,8 @@ class json_pointer
@return integer representation of @a s @return integer representation of @a s
@throw parse_error.106 if an array index begins with '0'
@throw parse_error.109 if an array index begins not with a digit
@throw out_of_range.404 if string @a s could not be converted to an integer @throw out_of_range.404 if string @a s could not be converted to an integer
*/ */
static int array_index(const std::string& s) static int array_index(const std::string& s)

View file

@ -11357,6 +11357,8 @@ class json_pointer
@return integer representation of @a s @return integer representation of @a s
@throw parse_error.106 if an array index begins with '0'
@throw parse_error.109 if an array index begins not with a digit
@throw out_of_range.404 if string @a s could not be converted to an integer @throw out_of_range.404 if string @a s could not be converted to an integer
*/ */
static int array_index(const std::string& s) static int array_index(const std::string& s)