moshelooks / treetree Goto Github PK
View Code? Open in Web Editor NEWgeneric tree-structured container class
generic tree-structured container class
base on boost 1.54
base on operating system: Debian 7.1 sid
base on gcc version: gcc 4.8.1
> g++ test_runner.cpp -o tree_test_exec -fpermissive
In file included from tree_io.hpp:32:0,
from test_runner.cpp:28:
/usr/local/include/boost/spirit.hpp:18:4: warning: #warning "This header is
deprecated. Please use: boost/spirit/include/classic.hpp" [-Wcpp]
# warning "This header is deprecated. Please use: boost/spirit/include/classic.hpp"
^
In file included from tree_io.hpp:35:0,
from test_runner.cpp:28:
tree.hpp: In instantiation of ‘void the::tree<T>::init(const OtherTr&) [with
OtherTr = the::tree<int>; T = int]’:
tree.hpp:962:48: required from ‘the::tree<T>::tree(const the::tree<T>&)
[with T = int]’
test_runner.cpp:140:15: required from here
tree.hpp:1022:42: warning: ‘insert’ was not declared in this scope, and no
declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
insert(this->end(),other.root_sub());
^
tree.hpp:1022:42: note: declarations in dependent base
‘the::_tree_private::mutable_tr<int, the::tree<int> >’ are not found by
unqualified lookup
tree.hpp:1022:42: note: use ‘this->insert’ instead
tree.hpp: In instantiation of ‘void the::tree<T>::init(const OtherTr&) [with
OtherTr = the::tree<std::basic_string<char> >; T = std::basic_string<char>]’:
tree.hpp:962:48: required from ‘the::tree<T>::tree(const the::tree<T>&)
[with T = std::basic_string<char>]’
test_runner.cpp:897:73: required from here
tree.hpp:1022:42: warning: ‘insert’ was not declared in this scope, and no
declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
tree.hpp:1022:42: note: declarations in dependent base
‘the::_tree_private::mutable_tr<std::basic_string<char>,
the::tree<std::basic_string<char> > >’ are not found by unqualified lookup
tree.hpp:1022:42: note: use ‘this->insert’ instead
tree.hpp: In instantiation of ‘void the::tree<T>::init(const OtherTr&) [with
OtherTr = the::tree<Simple>; T = Simple]’:
tree.hpp:962:48: required from ‘the::tree<T>::tree(const the::tree<T>&)
[with T = Simple]’
test_runner.cpp:955:65: required from here
tree.hpp:1022:42: warning: ‘insert’ was not declared in this scope, and no
declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
tree.hpp:1022:42: note: declarations in dependent base
‘the::_tree_private::mutable_tr<Simple, the::tree<Simple> >’ are not found
by unqualified lookup
tree.hpp:1022:42: note: use ‘this->insert’ instead
Original issue reported on code.google.com by [email protected]
on 15 Jul 2013 at 9:54
As below is error:
test_case(tree_any_type)
{
tree<string> tr;
tr.insert(tr.end(),"1");
}
test_runner.cpp:130:25: error: call of overloaded
‘insert(the::_tree_private::mutable_tr<std::basic_string<char>,
the::tree<std::basic_string<char> > >::pre_iterator, const char [2])’ is
ambiguous
tr.insert(tr.end(),"1");
As below is right:
test_case(tree_any_type)
{
tree<string> tr;
tr.insert(tr.end(),string("1"));
}
Original issue reported on code.google.com by [email protected]
on 17 Jul 2013 at 3:26
How to output tree ? like bleow:
/* The tests - note that tree structure
---1
-- 2
-- 3
-- 4
-- 5
-- 6
-- 7
*/
thanks!
Original issue reported on code.google.com by [email protected]
on 15 Jul 2013 at 10:20
test_case(tree_any_type1)
{
tree<boost::any> tr;
tr.insert(tr.end(),1);
}
test_runner.cpp:140:23: error: call of overloaded
‘insert(the::_tree_private::mutable_tr<boost::any, the::tree<boost::any>
>::pre_iterator, int)’ is ambiguous
tr.insert(tr.end(),1);
Original issue reported on code.google.com by [email protected]
on 17 Jul 2013 at 5:40
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.