Date
2016-08-05.21:58:45
Message id
8367

Content

Proposed resolution:

This wording is relative to N4606

  1. Insert the signature into [ostream], class template basic_ostream synopsis, as follows:

    [Drafting notes: Why member? Don't want to define a new category of inserters just for this.]

    namespace std {
      template <class charT, class traits = char_traits<charT> >
      class basic_ostream
        : virtual public basic_ios<charT, traits> {
      public:
        […]
        basic_ostream<charT, traits>& operator<<(const void* p);
        basic_ostream<charT, traits>& operator<<(nullptr_t);
        basic_ostream<charT, traits>& operator<<(
          basic_streambuf<char_type, traits>* sb);
        […]
      };
    
  2. Append the following new paragraphs to [ostream.inserters]:

    basic_ostream<charT, traits>& operator<<
      (basic_streambuf<charT, traits>* sb);
    

    […]

    -10- Returns: *this.

    basic_ostream<charT, traits>& operator<<(nullptr_t);
    

    -??- Effects: Equivalent to return *this << s; where s is an implementation-defined NTCTS.