Title
Ambiguity for basic_streambuf::pubseekpos() and a few other functions.
Status
tc1
Section
[depr.ios.members]
Submitter
Dietmar Kühl

Created on 1999-07-23.00:00:00 last changed 172 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

In [depr.ios.members] paragraph 8, remove the default arguments for basic_streambuf::pubseekpos(), basic_ifstream::open(), and basic_ofstream::open().

Date: 1999-07-23.00:00:00

According to paragraph 8 of this section, the methods basic_streambuf::pubseekpos(), basic_ifstream::open(), and basic_ofstream::open "may" be overloaded by a version of this function taking the type ios_base::open_mode as last argument argument instead of ios_base::openmode (ios_base::open_mode is defined in this section to be an alias for one of the integral types). The clause specifies, that the last argument has a default argument in three cases. However, this generates an ambiguity with the overloaded version because now the arguments are absolutely identical if the last argument is not specified.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1754
1999-07-23 00:00:00admincreate