From 7f2d3622286d585beb3d5f5f3fe630e122b56fe8 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Mon, 1 Aug 2022 09:57:04 -0700 Subject: [PATCH] chore: remove unnecessary temporary std::pair --- include/pybind11/pybind11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index d61dcd5c7e..c889dc4169 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -2073,7 +2073,7 @@ struct enum_base { + "\" already exists!"); } - entries[name] = std::make_pair(value, doc); + entries[name] = pybind11::make_tuple(value, doc); m_base.attr(std::move(name)) = std::move(value); }