Adding implict conversion from std::string to Name, to simplify python script

This commit is contained in:
Damien Dupuis 2010-07-15 14:09:39 +00:00
parent 9ba2c5c0bc
commit f6e62a17f8
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ BOOST_PYTHON_MODULE(DTR) {
.def(self < self)
;
implicitly_convertible<std::string, Name>();
// class DTR::Rule
class_<Rule>("Rule", init<Name, double, Name, Name, Name>())
// accessors