From 04401d5bb8af9faef0d1eca92b30976ebefe81f1 Mon Sep 17 00:00:00 2001 From: Qifan Lu Date: Sun, 10 Jan 2021 16:08:09 -0800 Subject: [PATCH] Fix namespace --- include/pybind11/pytypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/pytypes.h b/include/pybind11/pytypes.h index d5589055e0e..811a950e687 100644 --- a/include/pybind11/pytypes.h +++ b/include/pybind11/pytypes.h @@ -1333,7 +1333,7 @@ class dict : public object { } #else try { - return generic_item::get(*this, key); + return accessor_policies::generic_item::get(*this, key); } catch (...) { if (PyErr_Occurred() == PyExc_KeyError) { PyErr_Clear();