From 1482e7ede3133b8bf78c68c2e0618b1de90d328c Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sun, 4 Mar 2012 20:50:05 +0100 Subject: Got rid of boost dependency --- tree.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tree.cpp') 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 -#include - Node::Node() { @@ -111,12 +109,12 @@ string Tree::print(string term) switch ( (*it)->type ) { case OPERAND_NODE: { OperandNode *tmp = static_cast( *it ); - out << "node" << i << " [ label = \"" << boost::lexical_cast(tmp->value) << "\"];" << endl; + out << "node" << i << " [ label = \"" << tmp->value << "\"];" << endl; break; } case OPERATOR_NODE: { OperatorNode *tmp = static_cast( *it ); - out << "node" << i << " [ label = \"" << boost::lexical_cast(tmp->function) << "\"];" << endl; + out << "node" << i << " [ label = \"" << tmp->function << "\"];" << endl; for ( vector::iterator iter = this->nodeCollection->begin(); iter != this->nodeCollection->end(); ++iter ) { if ( *iter == (*it)->leftChild ) { -- cgit v1.2.3