diff --git a/include/eigenpy/std_unique_ptr.hpp b/include/eigenpy/std_unique_ptr.hpp
index 3dc8d4467c1bf2513cd1d1895603139846e7fc88..4c2185cbc9419f7d9151bf3513a5ab301f6661a2 100644
--- a/include/eigenpy/std_unique_ptr.hpp
+++ b/include/eigenpy/std_unique_ptr.hpp
@@ -73,7 +73,7 @@ struct StdUniquePtrResultConverter {
       typedef typename T::element_type element_type;
 
       PyObject* operator()(T&& x) const {
-        return details::unique_ptr_to_python(std::forward<T>(x));
+        return unique_ptr_to_python(std::forward<T>(x));
       }
 #ifndef BOOST_PYTHON_NO_PY_SIGNATURES
       PyTypeObject const* get_pytype() const {
@@ -92,7 +92,7 @@ struct InternalStdUniquePtrConverter {
       typedef typename remove_cvref<T>::type::element_type element_type;
 
       PyObject* operator()(T x) const {
-        return details::internal_unique_ptr_to_python(x);
+        return internal_unique_ptr_to_python(x);
       }
 #ifndef BOOST_PYTHON_NO_PY_SIGNATURES
       PyTypeObject const* get_pytype() const {