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: [RFC] libstdc++/9626 and std::vector constructors


... it turns out that, for _very_ subtle reasons, submitter's
testcase is not illegal at all.

Therefore, I have closed the PR: see the final part of the audit
trail for details.

However, I'm still puzzled as regards why, in our implementation,
we have:

    explicit
    vector(const allocator_type& __a = allocator_type());

    vector(size_type __n, const value_type& __value,
           const allocator_type& __a = allocator_type());

    explicit
    vector(size_type __n);

instead of:

   explicit
   vector(const allocator_type& __a = allocator_type());

   explicit
   vector(size_type __n, const value_type& __value = value_type(),
          const allocator_type& __a = allocator_type());

according to the letter of the standard.

Are they equivalent or not?

Thanks,
Paolo.


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