Boost.Python fixes now that item_t is abstract
This commit is contained in:
parent
58b5973c8e
commit
9edf413d9d
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ void export_item()
|
||||||
#if 0
|
#if 0
|
||||||
class_< item_t, bases<scope_t> > ("JournalItem", init<uint_least8_t>())
|
class_< item_t, bases<scope_t> > ("JournalItem", init<uint_least8_t>())
|
||||||
#else
|
#else
|
||||||
class_< item_t > ("JournalItem", init<uint_least8_t>())
|
class_< item_t, noncopyable > ("JournalItem", no_init)
|
||||||
#endif
|
#endif
|
||||||
#if 1
|
#if 1
|
||||||
.add_property("flags", &supports_flags<>::flags,
|
.add_property("flags", &supports_flags<>::flags,
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ using namespace boost::python;
|
||||||
|
|
||||||
void export_xact()
|
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",
|
.add_property("journal",
|
||||||
make_getter(&xact_base_t::journal,
|
make_getter(&xact_base_t::journal,
|
||||||
return_internal_reference<>()),
|
return_internal_reference<>()),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue