Adding implict conversion from std::string to Name, to simplify python script
This commit is contained in:
parent
9ba2c5c0bc
commit
f6e62a17f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue