2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 18:52:26 +00:00

std::string and std::complex as no-proxy types.

[SVN r31717]
This commit is contained in:
Joel de Guzman
2005-11-21 04:54:23 +00:00
parent 7cf0f9090f
commit a076239fc8
2 changed files with 8 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
# include <boost/python/iterator.hpp>
# include <boost/mpl/or.hpp>
# include <boost/mpl/not.hpp>
# include <boost/type_traits/is_same.hpp>
namespace boost { namespace python {
@@ -119,7 +120,12 @@ namespace boost { namespace python {
typedef mpl::or_<
mpl::bool_<NoProxy>
, mpl::not_<is_class<Data> > >
, mpl::not_<is_class<Data> >
, typename mpl::or_<
is_same<Data, std::string>
, is_same<Data, std::complex<float> >
, is_same<Data, std::complex<double> >
, is_same<Data, std::complex<long double> > >::type>
no_proxy;
typedef detail::container_element<Container, Index, DerivedPolicies>

View File

@@ -26,7 +26,7 @@ namespace boost { namespace python {
}
// The map_indexing_suite class is a predefined indexing_suite derived
// class for wrapping std::vector (and std::vector like) classes. It provides
// class for wrapping std::map (and std::map like) classes. It provides
// all the policies required by the indexing_suite (see indexing_suite).
// Example usage:
//