This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++-v3 useable ?
On Fre, 26 Jan 2001, Phil Edwards wrote:
> And the error message is...?
appended.
The second testcase that does not compile (but with gcc 2.95.2, egcs 1.1.2,
some solaris CC):
#include <vector>
#include <deque.h>
typedef std::vector <char *> foo;
int main()
{
foo::iterator iter;
foo a;
for (iter = a.begin(); iter != a.end(); iter++);
}
output appended, too. Its again related to the inclusion of "*.h" header
files, they're somehow screwing up compilation. commenting out the deque.h
makes it compile.
> "std::vector<char>" and try that. (Or if you really want to hold pointers,
> then push a pointer; "&e" in this case.)
Sorry, it was a typo.
Dirk
test.cc: In function `int main()':
test.cc:7: ambiguous overload for `std::__normal_iterator<char**,
std::vector<char*, std::allocator<char*> > >& !=
std::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >'
operator
/usr/local/include/g++-v3/bits/stl_relops.h:47: candidates are: bool
std::rel_ops::operator!=(const _Tp&, const _Tp&) [with _Tp =
std::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >]
/usr/local/include/g++-v3/bits/stl_iterator.h:1046: bool
std::operator!=(const std::__normal_iterator<_IteratorL, _Container>&, const
std::__normal_iterator<_IteratorR, _Container>&) [with _IteratorL = char**,
_IteratorR = char**, _Container = std::vector<char*, std::allocator<char*>
>]
foo.cpp: In function `int main()':
foo.cpp:11: ambiguous overload for `std::__normal_iterator<char**,
std::vector<char*, std::allocator<char*> > >& !=
std::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >'
operator
/usr/local/include/g++-v3/bits/stl_relops.h:47: candidates are: bool
std::rel_ops::operator!=(const _Tp&, const _Tp&) [with _Tp =
std::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >]
/usr/local/include/g++-v3/bits/stl_iterator.h:1046: bool
std::operator!=(const std::__normal_iterator<_IteratorL, _Container>&, const
std::__normal_iterator<_IteratorR, _Container>&) [with _IteratorL = char**,
_IteratorR = char**, _Container = std::vector<char*, std::allocator<char*>
>]