Code Monkey home page Code Monkey logo

treetree's People

Stargazers

 avatar

treetree's Issues

base on boost 1.54, found warning


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

don't insert string type

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

Does not support boost: any type in the treetree4

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.