diff --git a/include/pybind11/attr.h b/include/pybind11/attr.h index 907e6ed6e..1e063a5f9 100644 --- a/include/pybind11/attr.h +++ b/include/pybind11/attr.h @@ -40,7 +40,7 @@ template struct arg_t : public arg { inline namespace literals { /// String literal version of arg -constexpr arg operator"" _a(const char *name, size_t) { return {arg(name)}; } +constexpr arg operator"" _a(const char *name, size_t) { return arg(name); } } /// Annotation for methods