File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
#include < iostream>
3
3
#include < algorithm>
4
4
#include < vector>
5
+ #include < boost/lexical_cast.hpp>
5
6
template <class T >
6
7
struct BTNode
7
8
{
@@ -210,7 +211,7 @@ void XmlSerialize(const BTNode<T>* root, std::ostream& out = std::cout)
210
211
out << " </node>" ;
211
212
}
212
213
213
- template <class T >
214
+ /* template<class T>
214
215
BTNode<T>* XMLDeserialize(std::istream& in = std::cin)
215
216
{
216
217
char x;
@@ -228,7 +229,7 @@ BTNode<T>* XMLDeserialize(std::istream& in = std::cin)
228
229
std::string value;
229
230
getline(in, value, '"');
230
231
BTNode<T>* root = new BTNode<T>;
231
- root->data = boost::lexical_cast<T>(value);
232
+ // root->data = boost::lexical_cast<T>(value);
232
233
in >> x; //>
233
234
getline(in, temp, '>'); //<left>
234
235
root->left = XMLDeserialize<T>(in);
@@ -241,7 +242,7 @@ BTNode<T>* XMLDeserialize(std::istream& in = std::cin)
241
242
return root;
242
243
243
244
}
244
-
245
+ */
245
246
int main ()
246
247
{
247
248
auto a = build_sample_tree ();
You can’t perform that action at this time.
0 commit comments