diff options
author | Adrian Kummerländer | 2012-03-04 20:50:05 +0100 |
---|---|---|
committer | Adrian Kummerländer | 2012-03-04 20:50:05 +0100 |
commit | 1482e7ede3133b8bf78c68c2e0618b1de90d328c (patch) | |
tree | f3d48b2cba29ad8a23d5ac2de0026965d6bfb0a6 /tree.cpp | |
parent | c0933381497401a9439446d9470dd617b08b88ed (diff) | |
download | SimpleParser-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.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 ) { |