Boost.Python fixes now that item_t is abstract

This commit is contained in:
John Wiegley 2010-07-29 03:36:54 -04:00
parent 58b5973c8e
commit 9edf413d9d
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ void export_item()
#if 0
class_< item_t, bases<scope_t> > ("JournalItem", init<uint_least8_t>())
#else
class_< item_t > ("JournalItem", init<uint_least8_t>())
class_< item_t, noncopyable > ("JournalItem", no_init)
#endif
#if 1
.add_property("flags", &supports_flags<>::flags,

View file

@ -82,7 +82,7 @@ using namespace boost::python;
void export_xact()
{
class_< xact_base_t, bases<item_t> > ("TransactionBase")
class_< xact_base_t, bases<item_t>, noncopyable > ("TransactionBase", no_init)
.add_property("journal",
make_getter(&xact_base_t::journal,
return_internal_reference<>()),