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)
|
.def(self < self)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
implicitly_convertible<std::string, Name>();
|
||||||
|
|
||||||
// class DTR::Rule
|
// class DTR::Rule
|
||||||
class_<Rule>("Rule", init<Name, double, Name, Name, Name>())
|
class_<Rule>("Rule", init<Name, double, Name, Name, Name>())
|
||||||
// accessors
|
// accessors
|
||||||
|
|
Loading…
Reference in New Issue