This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/1707
- To: nobody at gcc dot gnu dot org
- Subject: Re: libstdc++/1707
- From: pme at gcc dot gnu dot org
- Date: 27 Jan 2001 22:06:00 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: pme at gcc dot gnu dot org
The following reply was made to PR libstdc++/1707; it has been noted by GNATS.
From: pme@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, meeberdt@unity.ncsu.edu, nobody@gcc.gnu.org
Cc:
Subject: Re: libstdc++/1707
Date: 27 Jan 2001 22:03:01 -0000
Synopsis: libstdc++ v3 gets confused by private assignment operators
State-Changed-From-To: open->closed
State-Changed-By: pme
State-Changed-When: Sat Jan 27 14:03:01 2001
State-Changed-Why:
Thank you for your bug report.
This is not valid C++ code. Types held in standard
containers must be assignable and copyable. Since objects
of type B cannot be assigned, they cannot be contained in a
vector.
The compiler tries to point this out; look for the 2 lines
with _STL_ERROR in the (trimmed) copy of the error messages
you reported:
classB.h: In static member function `static _Type
_STL_ERROR::__assignment_operator_requirement_violation(
_Type) [with _Type = B]':
classB.h:22: `B& B::operator=(const B&)' is private
/ncsu/meeberdt/local/gcc-curr/include/g++-v3/bits/concept_c
hecks.h:370: within this context
classB.h: In static member function `static _Type
_STL_ERROR::__const_parameter_required_for_assignment_op
erator(_Type, const _Type&) [with _Type = B]':
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1707&database=gcc