https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89181

            Bug ID: 89181
           Summary: Can std C++ library follow ISO spec parameter names?
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jg at jguk dot org
  Target Milestone: ---

Can the libstd++ header files show the same parameter names as the spec without
__ etc?

Eg latest C++ spec draft page 679 shows
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4713.pdf
basic_string& erase(size_type pos = 0, size_type n = npos);

vs
/usr/include/c++/8/bits/basic_string.h:1788
basic_string&
      erase(size_type __pos = 0, size_type __n = npos)


I thought the __ is really reserved for compilers internal use, not for library
interfaces, and it just fills the build output, I know it is only 2 bytes the
__, but it adds up and makes the stl interfaces look messy.

Reply via email to