Title
basic_syncbuf::basic_syncbuf() should not be explicit
Status
c++20
Section
[syncstream.syncbuf.overview]
Submitter
Nevin Liber

Created on 2019-08-06.00:00:00 last changed 45 months ago

Messages

Date: 2019-09-02.12:39:44

Proposed resolution:

This wording is relative to N4830.

  1. Modify [syncstream.syncbuf.overview], class template basic_syncbuf synopsis, as indicated:

    template<class charT, class traits, class Allocator>
    class basic_syncbuf : public basic_streambuf<charT, traits> {
    public:
      […]
      // [syncstream.syncbuf.cons], construction and destruction
      basic_syncbuf()
        : basic_syncbuf(nullptr) {}
      explicit basic_syncbuf(streambuf_type* obuf = nullptr)
        : basic_syncbuf(obuf, Allocator()) {}
      […]
    };
    
Date: 2019-09-02.00:00:00

[ 2019-09-02 Issue Prioritization ]

Status to Tentatively Ready and priority to 0 after seven positive votes on the reflector.

Date: 2019-08-06.00:00:00

When P0935 "Eradicating unnecessarily explicit default constructors from the standard library" was applied, basic_syncbuf was not in the working paper. basic_syncbuf should not have an explicit default constructor.

History
Date User Action Args
2021-02-25 10:48:01adminsetstatus: wp -> c++20
2019-11-19 14:48:30adminsetstatus: voting -> wp
2019-10-07 02:48:00adminsetstatus: ready -> voting
2019-09-02 12:39:44adminsetmessages: + msg10595
2019-09-02 12:39:44adminsetstatus: new -> ready
2019-08-15 19:04:36adminsetmessages: + msg10553
2019-08-06 00:00:00admincreate