From 704a1da81bb4e7d50c126add693689d0b32dc6e9 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 2 Apr 2024 10:39:38 -0700 Subject: [PATCH] Fix merge accident in pybind11/detail/descr.h This was noticed only when manually reviewing the diffs with the Google review tools. --- include/pybind11/detail/descr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/pybind11/detail/descr.h b/include/pybind11/detail/descr.h index d239830e2c..5b20c88431 100644 --- a/include/pybind11/detail/descr.h +++ b/include/pybind11/detail/descr.h @@ -259,7 +259,8 @@ template constexpr auto concat(const descr &d, const Args &...args) -> decltype(std::declval>() + concat(args...)) { - return d + const_name(", ") + concat(args...); + // Ensure that src_loc of existing descr is used. + return d + const_name(", ", src_loc{nullptr, 0}) + concat(args...); } #endif