From 51115f0a91b81453fc0f7b055df5a4ea13ee70a7 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 27 May 2010 21:23:50 -0600 Subject: Updated to Boost 1.43 --- src/py_journal.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/py_journal.cc') diff --git a/src/py_journal.cc b/src/py_journal.cc index 81ce290d..1848adc4 100644 --- a/src/py_journal.cc +++ b/src/py_journal.cc @@ -226,8 +226,8 @@ void export_journal() class_< collect_posts, bases >, shared_ptr, boost::noncopyable >("PostCollector") .def("__len__", &collect_posts::length) - .def("__iter__", range > > + .def("__iter__", python::range > > (&collect_posts::begin, &collect_posts::end)) ; @@ -236,8 +236,9 @@ void export_journal() .def("__len__", &collector_wrapper::length) .def("__getitem__", posts_getitem, return_internal_reference<1, with_custodian_and_ward_postcall<0, 1> >()) - .def("__iter__", range > > + .def("__iter__", + python::range > > (&collector_wrapper::begin, &collector_wrapper::end)) ; @@ -296,15 +297,15 @@ void export_journal() with_custodian_and_ward_postcall<0, 1> >()) #endif - .def("__iter__", range > + .def("__iter__", python::range > (&journal_t::xacts_begin, &journal_t::xacts_end)) - .def("xacts", range > + .def("xacts", python::range > (&journal_t::xacts_begin, &journal_t::xacts_end)) - .def("auto_xacts", range > + .def("auto_xacts", python::range > (&journal_t::auto_xacts_begin, &journal_t::auto_xacts_end)) - .def("period_xacts", range > + .def("period_xacts", python::range > (&journal_t::period_xacts_begin, &journal_t::period_xacts_end)) - .def("sources", range > + .def("sources", python::range > (&journal_t::sources_begin, &journal_t::sources_end)) .def("read", py_read) -- cgit v1.2.3