Const correctness in input/output libraries



 DEVELOP > c-Plus-Plus > Const correctness in input/output libraries

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: ""
Date: 21 Jan 2008 05:00:28 AM
Object: Const correctness in input/output libraries
I have found this page:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1360.htm
identifying const-correctness inconsistencies in the input/output
standard libraries (e.g., tellg() not being declared const). I was
just wondering: what is the current opinion of the standard committee
about such issue? Is that going to be taken into account for the new
standard? (I admit that I was a bit surprised when I discovered that
is_open() and tellg() are not const).
Nicola
.

User: "=?UTF-8?B?RXJpayBXaWtzdHLDtm0=?="

Title: Re: Const correctness in input/output libraries 21 Jan 2008 12:10:19 PM
On 2008-01-21 12:00,
wrote:

I have found this page:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2002/n1360.htm

identifying const-correctness inconsistencies in the input/output
standard libraries (e.g., tellg() not being declared const). I was
just wondering: what is the current opinion of the standard committee
about such issue? Is that going to be taken into account for the new
standard? (I admit that I was a bit surprised when I discovered that
is_open() and tellg() are not const).

I can not speak for the standards committee but a quick check shows that
those functions are still not const in the current working draft. I can
see two reasons for this, the first being that since the proposal was
made before they started working on the new version it was forgotten.
The other alternative is that the proposal was considered but for some
reason it was rejected (perhaps it would break too much existing code?).
You can try asking asking in comp.std.c++.
--
Erik Wikström
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER