diff --git a/include/pybind11/detail/descr.h b/include/pybind11/detail/descr.h index f45822079f..ac608a64de 100644 --- a/include/pybind11/detail/descr.h +++ b/include/pybind11/detail/descr.h @@ -101,7 +101,7 @@ constexpr descr<1, Type> const_name() { // Use a different name based on whether the parameter is used as input or output template -constexpr auto io_name(char const (&text1)[N1], char const (&text2)[N2]) { +constexpr descr io_name(char const (&text1)[N1], char const (&text2)[N2]) { return const_name("@") + const_name(text1) + const_name("@") + const_name(text2) + const_name("@"); } @@ -163,8 +163,9 @@ constexpr auto concat(const descr &d, const Args &...args) { } #else template -constexpr auto concat(const descr &d, const Args &...args) - -> decltype(std::declval>() + concat(args...)) { +constexpr auto concat(const descr &d, + const Args &...args) -> decltype(std::declval>() + + concat(args...)) { return d + const_name(", ") + concat(args...); } #endif