This is the mail archive of the libstdc++@sourceware.cygnus.com 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]

Re: string fix & mystery


According to ncm@cantrip.org:
> The mystery is, why does the compiler not report the bug?

>  #ifdef CONSC
>    template 
>      C* 
> -    S::_S_construct<S::iterator>
> -    (S::size_type, C, const allocator<C>&);
> +    S::_S_construct(S::size_type, C, S::allocator_type const&);
>  #endif

Well, because there's no compiler-visible bug.  Apparently,
allocator_type happens to be allocator<C> in all of our actual
usages of basic_string.
-- 
Chip Salzenberg              - a.k.a. -              <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
    but he stepped in a wormhole and had to go in early."  // MST3K

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