aboutsummaryrefslogtreecommitdiff
path: root/tree.cpp
diff options
context:
space:
mode:
authorAdrian Kummerländer2012-03-04 20:50:05 +0100
committerAdrian Kummerländer2012-03-04 20:50:05 +0100
commit1482e7ede3133b8bf78c68c2e0618b1de90d328c (patch)
treef3d48b2cba29ad8a23d5ac2de0026965d6bfb0a6 /tree.cpp
parentc0933381497401a9439446d9470dd617b08b88ed (diff)
downloadSimpleParser-1482e7ede3133b8bf78c68c2e0618b1de90d328c.tar
SimpleParser-1482e7ede3133b8bf78c68c2e0618b1de90d328c.tar.gz
SimpleParser-1482e7ede3133b8bf78c68c2e0618b1de90d328c.tar.bz2
SimpleParser-1482e7ede3133b8bf78c68c2e0618b1de90d328c.tar.lz
SimpleParser-1482e7ede3133b8bf78c68c2e0618b1de90d328c.tar.xz
SimpleParser-1482e7ede3133b8bf78c68c2e0618b1de90d328c.tar.zst
SimpleParser-1482e7ede3133b8bf78c68c2e0618b1de90d328c.zip
Got rid of boost dependency
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 ) {