Apply descr.h src_loc change (smart_holder PR #4022) to code added with master PR #4587

This commit is contained in:
Ralf W. Grosse-Kunstleve 2023-03-23 22:12:13 -07:00
parent 6b8264fb24
commit 13936bb258

View File

@ -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> template <size_t N1, size_t N2, typename... Ts1, typename... Ts2>
constexpr descr<N1 + N2 + 2, Ts1..., Ts2...> operator,(const descr<N1, Ts1...> &a, constexpr descr<N1 + N2 + 2, Ts1..., Ts2...> operator,(const descr<N1, Ts1...> &a,
const descr<N2, Ts2...> &b) { 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> template <size_t N, typename... Ts, typename... Args>