aboutsummaryrefslogtreecommitdiff
path: root/tree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tree.cpp')
-rw-r--r--tree.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tree.cpp b/tree.cpp
index 3a44833..ee45e57 100644
--- a/tree.cpp
+++ b/tree.cpp
@@ -1,8 +1,6 @@
#include "tree.h"
#include <math.h>
-#include <boost/lexical_cast.hpp>
-
Node::Node()
{
@@ -111,12 +109,12 @@ string Tree::print(string term)
switch ( (*it)->type ) {
case OPERAND_NODE: {
OperandNode *tmp = static_cast<OperandNode*>( *it );
- out << "node" << i << " [ label = \"" << boost::lexical_cast<string>(tmp->value) << "\"];" << endl;
+ out << "node" << i << " [ label = \"" << tmp->value << "\"];" << endl;
break;
}
case OPERATOR_NODE: {
OperatorNode *tmp = static_cast<OperatorNode*>( *it );
- out << "node" << i << " [ label = \"" << boost::lexical_cast<string>(tmp->function) << "\"];" << endl;
+ out << "node" << i << " [ label = \"" << tmp->function << "\"];" << endl;
for ( vector<Node*>::iterator iter = this->nodeCollection->begin(); iter != this->nodeCollection->end(); ++iter ) {
if ( *iter == (*it)->leftChild ) {