Skip to content
Snippets Groups Projects
Commit c86d2b44 authored by Michael Wedel's avatar Michael Wedel
Browse files

Refs #11432. Reverting change that breaks compilation on RHEL6

parent b67f91e0
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,7 @@ namespace //<unnamed> ...@@ -47,6 +47,7 @@ namespace //<unnamed>
void export_SpaceGroup() void export_SpaceGroup()
{ {
register_ptr_to_python<boost::shared_ptr<SpaceGroup> >();
register_ptr_to_python<boost::shared_ptr<const SpaceGroup> >(); register_ptr_to_python<boost::shared_ptr<const SpaceGroup> >();
class_<SpaceGroup, boost::noncopyable, bases<Group> >("SpaceGroup", no_init) class_<SpaceGroup, boost::noncopyable, bases<Group> >("SpaceGroup", no_init)
......
...@@ -30,9 +30,10 @@ namespace ...@@ -30,9 +30,10 @@ namespace
return self.isSubscribed(number); return self.isSubscribed(number);
} }
SpaceGroup_const_sptr createSpaceGroup(SpaceGroupFactoryImpl &self, const std::string &symbol) SpaceGroup_sptr createSpaceGroup(SpaceGroupFactoryImpl &self, const std::string &symbol)
{ {
return self.createSpaceGroup(symbol); SpaceGroup_const_sptr spaceGroup = self.createSpaceGroup(symbol);
return boost::const_pointer_cast<SpaceGroup>(spaceGroup);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment