summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-07-29 03:36:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-07-29 03:36:54 -0400
commit9edf413d9d202602815ad6bf6a5b92318b2e99fa (patch)
treef90b9d4ceacdaba33f437dd40526e503c9f0ee2e
parent58b5973c8e9dc68202700e839f048742fdd62a00 (diff)
downloadfork-ledger-9edf413d9d202602815ad6bf6a5b92318b2e99fa.tar.gz
fork-ledger-9edf413d9d202602815ad6bf6a5b92318b2e99fa.tar.bz2
fork-ledger-9edf413d9d202602815ad6bf6a5b92318b2e99fa.zip
Boost.Python fixes now that item_t is abstract
-rw-r--r--src/py_item.cc2
-rw-r--r--src/py_xact.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/py_item.cc b/src/py_item.cc
index 0e95f24f..e37228fe 100644
--- a/src/py_item.cc
+++ b/src/py_item.cc
@@ -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,
diff --git a/src/py_xact.cc b/src/py_xact.cc
index 5ab0d90d..b7582854 100644
--- a/src/py_xact.cc
+++ b/src/py_xact.cc
@@ -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<>()),