mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 17:32:55 +00:00
ADL bug-fix
[SVN r22730]
This commit is contained in:
@@ -23,7 +23,7 @@ std::string x_value(X const& x)
|
||||
}
|
||||
|
||||
BOOST_PYTHON_MODULE(map_indexing_suite_ext)
|
||||
{
|
||||
{
|
||||
class_<X>("X")
|
||||
.def(init<>())
|
||||
.def(init<X>())
|
||||
@@ -39,11 +39,16 @@ BOOST_PYTHON_MODULE(map_indexing_suite_ext)
|
||||
class_<std::map<std::string, X> >("XMap")
|
||||
.def(map_indexing_suite<std::map<std::string, X> >())
|
||||
;
|
||||
|
||||
|
||||
// Compile check only...
|
||||
class_<std::map<int, int> >("IntMap")
|
||||
.def(map_indexing_suite<std::map<int, int> >())
|
||||
;
|
||||
|
||||
// Compile check only...
|
||||
class_<std::map<std::string, boost::shared_ptr<X> > >("TestMap")
|
||||
.def(map_indexing_suite<std::map<std::string, boost::shared_ptr<X> > >())
|
||||
;
|
||||
}
|
||||
|
||||
#include "module_tail.cpp"
|
||||
|
||||
Reference in New Issue
Block a user