aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-21 19:21:16 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-05-21 19:21:16 +0000
commit56ad8827c9da79c379ca586027db7f28a7c54dc3 (patch)
treeb3ecc791e83936725d54246d6ecbfa1493aad8cd
parentd1c634757dfc39799736c7082e3af22e09c1a501 (diff)
downloadpaludis-56ad8827c9da79c379ca586027db7f28a7c54dc3.tar.gz
paludis-56ad8827c9da79c379ca586027db7f28a7c54dc3.tar.xz
Fix tr1 usage
-rwxr-xr-xpython/paludis_python.hh22
1 files changed, 11 insertions, 11 deletions
diff --git a/python/paludis_python.hh b/python/paludis_python.hh
index 0b78f65..d9a38a0 100755
--- a/python/paludis_python.hh
+++ b/python/paludis_python.hh
@@ -41,9 +41,9 @@ namespace paludis
return p.get();
}
- // Make Boost.Python work with std::tr1::shared_ptr<const>
+ // Make Boost.Python work with tr1::shared_ptr<const>
template <typename T_>
- inline T_ * get_pointer(std::tr1::shared_ptr<const T_> const & p)
+ inline T_ * get_pointer(tr1::shared_ptr<const T_> const & p)
{
return const_cast<T_*>(p.get());
}
@@ -53,16 +53,16 @@ namespace boost
{
namespace python
{
- // Make Boost.Python work with std::tr1::shared_ptr<>
+ // Make Boost.Python work with tr1::shared_ptr<>
template <typename T_>
- struct pointee<std::tr1::shared_ptr<T_> >
+ struct pointee<tr1::shared_ptr<T_> >
{
typedef T_ type;
};
- // Make Boost.Python work with std::tr1::shared_ptr<const>
+ // Make Boost.Python work with tr1::shared_ptr<const>
template <typename T_>
- struct pointee<std::tr1::shared_ptr<const T_> >
+ struct pointee<tr1::shared_ptr<const T_> >
{
typedef T_ type;
};
@@ -78,9 +78,9 @@ namespace paludis
void
register_shared_ptrs_to_python()
{
- bp::register_ptr_to_python<std::tr1::shared_ptr<T_> >();
- bp::register_ptr_to_python<std::tr1::shared_ptr<const T_> >();
- bp::implicitly_convertible<std::tr1::shared_ptr<T_>, std::tr1::shared_ptr<const T_> >();
+ bp::register_ptr_to_python<tr1::shared_ptr<T_> >();
+ bp::register_ptr_to_python<tr1::shared_ptr<const T_> >();
+ bp::implicitly_convertible<tr1::shared_ptr<T_>, tr1::shared_ptr<const T_> >();
}
// expose stringifyable enums
@@ -135,8 +135,8 @@ namespace paludis
_e = PyErr_NewException(const_cast<char*>(_longname.c_str()), NULL, NULL);
PyModule_AddObject(bp::detail::current_scope, const_cast<char*>(_name.c_str()), _e);
bp::register_exception_translator<Ex_>(
- std::tr1::bind(std::tr1::mem_fn(&register_exception<Ex_>::translator),
- this, std::tr1::placeholders::_1)
+ tr1::bind(tr1::mem_fn(&register_exception<Ex_>::translator),
+ this, tr1::placeholders::_1)
);
}