Skip to content

Commit

Permalink
Apply descr.h src_loc change (smart_holder PR pybind#4022) to code …
Browse files Browse the repository at this point in the history
…added with master PR pybind#4587
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Mar 24, 2023
1 parent 6b8264f commit 13936bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/pybind11/detail/descr.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ constexpr descr<N, Ts...> concat(const descr<N, Ts...> &descr) {
template <size_t N1, size_t N2, typename... Ts1, typename... Ts2>
constexpr descr<N1 + N2 + 2, Ts1..., Ts2...> operator,(const descr<N1, Ts1...> &a,
const descr<N2, Ts2...> &b) {
return a + const_name(", ") + b;
// Ensure that src_loc of existing descr is used.
return a + const_name(", ", src_loc{nullptr, 0}) + b;
}

template <size_t N, typename... Ts, typename... Args>
Expand Down

0 comments on commit 13936bb

Please sign in to comment.