Add additional constructor for common use case.
This commit is contained in:
parent
7ef1c3544e
commit
3b2767f167
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ private:
|
|||
class text_node: public node {
|
||||
public:
|
||||
text_node(expression_ptr text): node(), text_(text) {}
|
||||
text_node(std::string text): node(), text_(parse_expression(text)) {}
|
||||
void to_xml(boost::property_tree::ptree &xml) const;
|
||||
static node_ptr from_xml(boost::property_tree::ptree const& xml);
|
||||
virtual void apply(char_properties const& p, Feature const& feature, processed_text &output) const;
|
||||
|
|
Loading…
Reference in a new issue