From 2353b9b8fa3dfc91b50b8ba9ddaa41fe166c5360 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Mon, 27 Jun 2016 16:05:46 +0200 Subject: [PATCH] quench C4459 warning on MSVC2015 --- 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 d472531f..e20096a8 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -1004,7 +1004,7 @@ template struct init { typename std::enable_if::value && !std::is_constructible::value, int>::type = 0> void execute(pybind11::class_ &class_, const Extra&... extra) const { - class_.def("__init__", [](Alias *self, Args... args) { new (self) Alias(args...); }, extra...); + class_.def("__init__", [](Alias *self_, Args... args) { new (self_) Alias(args...); }, extra...); } };