This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++ problem enquiry before submition to gnats.
- To: Martin Sebor <sebor at roguewave dot com>
- Subject: Re: C++ problem enquiry before submition to gnats.
- From: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Date: Fri, 23 Mar 2001 13:58:18 +0100
- Cc: gcc-bugs at gcc dot gnu dot org
sebor@roguewave.com said:
> The code is ill-formed due to the violation of assignability, i.e.,
> std::list<const int>::value_type doesn't satisfy the Assignable
> requirement mentioned in 23.1, p5.
Well, I just over-simplified the code...
The funny thing is that the concept checks did not choke on it.
> What you're seeing is an error caused by the definition of
> std::allocator which cannot be specialized on const T (there's an open
> issue on this at http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/
> lwg-active.html#274).
Thank's a lot...
Supressing the const solved my problem.
Theo.
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------
PGP signature