aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2013-02-09 21:18:47 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2013-02-09 21:18:47 +0000
commit6bda8b8b0d4a872d68a814a055cc779e432d9a66 (patch)
treeaac521f8ce5614f04b441689d62dea805337262f
parent37dcc139d82459147556f0290268537946f04371 (diff)
downloadpaludis-6bda8b8b0d4a872d68a814a055cc779e432d9a66.tar.gz
paludis-6bda8b8b0d4a872d68a814a055cc779e432d9a66.tar.xz
Fix Python with GCC 4.7
Fixes: ticket:1259
-rw-r--r--python/dep_label.cc2
-rw-r--r--python/metadata_key.cc12
2 files changed, 7 insertions, 7 deletions
diff --git a/python/dep_label.cc b/python/dep_label.cc
index 95b05c1..c1d639a 100644
--- a/python/dep_label.cc
+++ b/python/dep_label.cc
@@ -66,7 +66,7 @@ struct class_concrete_dependencies_label :
bp::no_init
)
{
- def("__init__",
+ this->def("__init__",
bp::make_constructor(&make_concrete_dependencies_label<L_>),
"__init__(String)"
);
diff --git a/python/metadata_key.cc b/python/metadata_key.cc
index aaa0409..f2f9b85 100644
--- a/python/metadata_key.cc
+++ b/python/metadata_key.cc
@@ -783,7 +783,7 @@ struct class_set_key :
bp::implicitly_convertible<std::shared_ptr<MetadataCollectionKeyWrapper<C_> >,
std::shared_ptr<MetadataKey> >();
- def("parse_value", bp::pure_virtual(&MetadataCollectionKey<C_>::parse_value),
+ this->def("parse_value", bp::pure_virtual(&MetadataCollectionKey<C_>::parse_value),
("parse_value() -> " + set + "\n"
"Fetch our value.").c_str()
);
@@ -812,7 +812,7 @@ struct class_spec_tree_key :
bp::implicitly_convertible<std::shared_ptr<MetadataSpecTreeKeyWrapper<C_> >,
std::shared_ptr<MetadataKey> >();
- def("parse_value", bp::pure_virtual(&MetadataSpecTreeKey<C_>::parse_value),
+ this->def("parse_value", bp::pure_virtual(&MetadataSpecTreeKey<C_>::parse_value),
("parse_value() -> " + spec_tree + "\n"
"Fetch our value").c_str()
);
@@ -843,12 +843,12 @@ struct class_spec_tree_key<FetchableURISpecTree> :
bp::implicitly_convertible<std::shared_ptr<MetadataSpecTreeKeyWrapper<FetchableURISpecTree> >,
std::shared_ptr<MetadataKey> >();
- def("parse_value", bp::pure_virtual(&MetadataSpecTreeKey<FetchableURISpecTree>::parse_value),
+ this->def("parse_value", bp::pure_virtual(&MetadataSpecTreeKey<FetchableURISpecTree>::parse_value),
("parse_value() -> " + spec_tree + "\n"
"Fetch our value").c_str()
);
- def("initial_label", bp::pure_virtual(&MetadataSpecTreeKey<FetchableURISpecTree>::initial_label),
+ this->def("initial_label", bp::pure_virtual(&MetadataSpecTreeKey<FetchableURISpecTree>::initial_label),
"initial_label() -> URILabel\n"
"Return a URILabel that represents the initial label to use when\n"
"deciding the behaviour of individual items in the heirarchy."
@@ -880,12 +880,12 @@ struct class_spec_tree_key<DependencySpecTree> :
bp::implicitly_convertible<std::shared_ptr<MetadataSpecTreeKeyWrapper<DependencySpecTree> >,
std::shared_ptr<MetadataKey> >();
- def("parse_value", bp::pure_virtual(&MetadataSpecTreeKey<DependencySpecTree>::parse_value),
+ this->def("parse_value", bp::pure_virtual(&MetadataSpecTreeKey<DependencySpecTree>::parse_value),
("parse_value() -> " + spec_tree + "\n"
"Fetch our value").c_str()
);
- def("initial_labels", bp::pure_virtual(&MetadataSpecTreeKey<DependencySpecTree>::initial_labels),
+ this->def("initial_labels", bp::pure_virtual(&MetadataSpecTreeKey<DependencySpecTree>::initial_labels),
"initial_label() -> DependenciesLabelSequence\n"
"Return a DependenciesLabelSequence that represents the initial labels to use when\n"
"deciding the behaviour of individual items in the heirarchy."