majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

GCC 3.4 reports "no type named `base_type' in `struct YAML::detail::iterator_base" #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Linux, GCC 3.4.6. I am trying to comlpile yaml-cpp-0.5.0.
2. Compiler reports as presented below.
3. I know that newer compilers do compile that succesfully. But I am not 
authorized to upgrade the compiler. Are there any solutions for my case?

Error report:

In file included from .../src/convert.cpp:1:
.../include/yaml-cpp/node/detail/iterator.h: In instantiation of 
`YAML::detail::iterator_base<const YAML::detail::iterator_value>':
.../include/yaml-cpp/node/convert.h:140:   instantiated from here
.../include/yaml-cpp/node/detail/iterator.h:32: error: no type named 
`base_type' in `struct YAML::detail::iterator_base<const 
YAML::detail::iterator_value>'
.../include/yaml-cpp/node/detail/iterator.h:39: error: no type named 
`base_type' in `struct YAML::detail::iterator_base<const 
YAML::detail::iterator_value>'
In file included from .../src/convert.cpp:2:
.../include/yaml-cpp/node/impl.h: In member function `YAML::const_iterator 
YAML::Node::begin() const':
.../include/yaml-cpp/node/impl.h:241: error: no matching function for call to 
`YAML::detail::iterator_base<const 
YAML::detail::iterator_value>::iterator_base(YAML::detail::node_iterator, 
YAML::detail::shared_memory_holder&)'
.../include/yaml-cpp/node/detail/iterator_fwd.h:20: note: candidates are: 
YAML::detail::iterator_base<const 
YAML::detail::iterator_value>::iterator_base(const 
YAML::detail::iterator_base<const YAML::detail::iterator_value>&)
.../include/yaml-cpp/node/detail/iterator.h:38: note:                 
YAML::detail::iterator_base<V>::iterator_base() [with V = const 
YAML::detail::iterator_value]
.../include/yaml-cpp/node/detail/iterator.h: At global scope:
.../include/yaml-cpp/node/detail/iterator.h: In instantiation of 
`YAML::detail::iterator_base<YAML::detail::iterator_value>':
.../include/yaml-cpp/node/impl.h:245:   instantiated from here
.../include/yaml-cpp/node/detail/iterator.h:32: error: no type named 
`base_type' in `struct 
YAML::detail::iterator_base<YAML::detail::iterator_value>'
.../include/yaml-cpp/node/detail/iterator.h:39: error: no type named 
`base_type' in `struct 
YAML::detail::iterator_base<YAML::detail::iterator_value>'
.../include/yaml-cpp/node/impl.h: In member function `YAML::iterator 
YAML::Node::begin()':
.../include/yaml-cpp/node/impl.h:246: error: no matching function for call to 
`YAML::detail::iterator_base<YAML::detail::iterator_value>::iterator_base(YAML::
detail::node_iterator, YAML::detail::shared_memory_holder&)'
.../include/yaml-cpp/node/detail/iterator_fwd.h:20: note: candidates are: 
YAML::detail::iterator_base<YAML::detail::iterator_value>::iterator_base(const 
YAML::detail::iterator_base<YAML::detail::iterator_value>&)
.../include/yaml-cpp/node/detail/iterator.h:38: note:                 
YAML::detail::iterator_base<V>::iterator_base() [with V = 
YAML::detail::iterator_value]
.../include/yaml-cpp/node/impl.h: In member function `YAML::const_iterator 
YAML::Node::end() const':
.../include/yaml-cpp/node/impl.h:251: error: no matching function for call to 
`YAML::detail::iterator_base<const 
YAML::detail::iterator_value>::iterator_base(YAML::detail::node_iterator, 
YAML::detail::shared_memory_holder&)'
.../include/yaml-cpp/node/detail/iterator_fwd.h:20: note: candidates are: 
YAML::detail::iterator_base<const 
YAML::detail::iterator_value>::iterator_base(const 
YAML::detail::iterator_base<const YAML::detail::iterator_value>&)
.../include/yaml-cpp/node/detail/iterator.h:38: note:                 
YAML::detail::iterator_base<V>::iterator_base() [with V = const 
YAML::detail::iterator_value]
.../include/yaml-cpp/node/impl.h: In member function `YAML::iterator 
YAML::Node::end()':
.../include/yaml-cpp/node/impl.h:256: error: no matching function for call to 
`YAML::detail::iterator_base<YAML::detail::iterator_value>::iterator_base(YAML::
detail::node_iterator, YAML::detail::shared_memory_holder&)'
.../include/yaml-cpp/node/detail/iterator_fwd.h:20: note: candidates are: 
YAML::detail::iterator_base<YAML::detail::iterator_value>::iterator_base(const 
YAML::detail::iterator_base<YAML::detail::iterator_value>&)
.../include/yaml-cpp/node/detail/iterator.h:38: note:                 
YAML::detail::iterator_base<V>::iterator_base() [with V = 
YAML::detail::iterator_value]

Original issue reported on code.google.com by vadim.su...@gmail.com on 10 Apr 2013 at 3:15

GoogleCodeExporter commented 9 years ago
I'm happy to include an #ifdef for old compilers (if the fix isn't too large), 
but I don't have a copy of gcc 3.4.6 to test on. If you have a patch, I'll look 
at it.

Original comment by jbe...@gmail.com on 11 Apr 2013 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 24 Jan 2015 at 10:33