This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++ not conforming with --enable-concepts-check?


On Wed, Sep 22, 2004 at 04:35:40PM +0200, Paolo Carlini wrote:
> magfr@lysator.liu.se wrote:
> 
> >Hello.
> >
> >If I try to compile the attached program and have built the compiler with
> >--enable-concept-checks that fails but as far as I can see from the 
> >standard
> >queue only requires that the elements should be CopyConstructible, there is
> >no requirement for DefaultConstructability, so I think that is a bug in the
> >concept checking code.
>
> Hi and thanks for your message: in my opinion, indeed, we have a bug.
>
>      // Matt Austern's book puts DefaultConstructible here, the C++
>      // standard places it in Container

Maybe std::queue shouldn't require DefaultConstructible, but isn't its
default container std::deque, and shouldn't deque be enforcing it?  
Why is it failing to do so?

(Apologies for being too lazy to chase all the details myself...)

Nathan Myers
ncm-nospam@cantrip.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]