Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions include/boost/json/impl/pointer.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,12 @@ value::try_set_at_pointer(

value&
value::set_at_pointer(
string_view sv, value_ref ref, set_pointer_options const& opts )
string_view sv,
value_ref ref,
set_pointer_options const& opts,
source_location const& loc)
{
return try_set_at_pointer(sv, ref, opts).value();
return try_set_at_pointer(sv, ref, opts).value(loc);
}

} // namespace json
Expand Down
13 changes: 10 additions & 3 deletions include/boost/json/value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,9 @@ class value

/** Overload

@param loc @ref boost::source_location to use in thrown exception; the
source location of the call site by default.

@throws boost::system::system_error Overload **(3)** reports errors by
throwing an exception.
*/
Expand All @@ -1733,9 +1736,9 @@ class value
! std::is_same<T, bool>::value,
T>::type
#endif
to_number() const
to_number(source_location const& loc = BOOST_CURRENT_LOCATION) const
{
return try_to_number<T>().value();
return try_to_number<T>().value(loc);
}
/// @}

Expand Down Expand Up @@ -2991,6 +2994,9 @@ class value

@param opts The options for the algorithm.

@param loc @ref boost::source_location to use in thrown exception; the
source location of the call site by default.

@return Reference to the element identified by `ptr`.

@throws boost::system::system_error Overload **(1)** reports errors by
Expand All @@ -3006,7 +3012,8 @@ class value
set_at_pointer(
string_view sv,
value_ref ref,
set_pointer_options const& opts = {} );
set_pointer_options const& opts = {},
source_location const& loc = BOOST_CURRENT_LOCATION);

/** Overload

Expand Down
Loading