Skip to content

Commit cfe7356

Browse files
authored
Fix merge accident in pybind11/detail/descr.h (#5086)
This was noticed only when manually reviewing the diffs with the Google review tools.
1 parent 08a97da commit cfe7356

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/pybind11/detail/descr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ template <size_t N, typename... Ts, typename... Args>
259259
constexpr auto concat(const descr<N, Ts...> &d,
260260
const Args &...args) -> decltype(std::declval<descr<N + 2, Ts...>>()
261261
+ concat(args...)) {
262-
return d + const_name(", ") + concat(args...);
262+
// Ensure that src_loc of existing descr is used.
263+
return d + const_name(", ", src_loc{nullptr, 0}) + concat(args...);
263264
}
264265
#endif
265266

0 commit comments

Comments
 (0)