This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
call of overloaded `vector()' is ambiguous
- To: <libstdc++ at sources dot redhat dot com>
- Subject: call of overloaded `vector()' is ambiguous
- From: "Dr. David Gilbert" <dg at px dot uk dot com>
- Date: Fri, 15 Dec 2000 17:53:05 +0000 (GMT)
Hi,
(This is with todays gcc CVS - don't know how long it has been in there
but it works with 2.95.2 and a snapshot from libstdc++ from a few months
back).
I've got a constructor for a class with a STL vector instantiation in it
and this consturctor just falls through to the vector() constructor;
however I'm getting:
mysourcefile.h:40: call of overloaded `vector()' is ambiguous
/usr/local/gcc-cvs15122000/include/g++-v3/bits/stl_vector.h:252:
candidates
are: std::vector<_Tp, _Alloc>::vector(unsigned int = 0) [with _Tp =
treeElement*, _Alloc = std::allocator<treeElement*>]
/usr/local/gcc-cvs15122000/include/g++-v3/bits/stl_vector.h:244:
std::vector<_Tp, _Alloc>::vector(typename std::_Vector_base<_Tp,
_Alloc>::allocator_type& = typename std::_Vector_base<_Tp,
_Alloc>::allocator_type()) [with _Tp = treeElement*, _Alloc =
std::allocator<treeElement*>]
Any ideas?
Dave
P.S. I'm having to compile with -D_GNU_SOURCE to get over the lldiv_t
problem - any solution known to that?
--
/------------------------------------------------------------------\
| Dr. David Alan Gilbert | Work:dg@px.uk.com +44-161-286-2000 Ex258|
| -------- G7FHJ --------|---------------------------------------- |
| Home: dave@treblig.org http://www.treblig.org |
\------------------------------------------------------------------/