Title
is std::FILE a complete type?
Status
cd1
Section
[file.streams]
Submitter
Martin Sebor

Created on 2003-09-18.00:00:00 last changed 163 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

We don't want to impose any restrictions beyond what the C standard already says. We don't want to make anything implementation defined, because that imposes new requirements in implementations.

Date: 2010-10-21.18:28:33

Proposed resolution:

In the first sentence of [fstreams] paragraph 2, change "defined" to "declared".

Date: 2003-09-18.00:00:00

7.19.1, p2, of C99 requires that the FILE type only be declared in <stdio.h>. None of the (implementation-defined) members of the struct is mentioned anywhere for obvious reasons.

C++ says in 27.8.1, p2 that FILE is a type that's defined in <cstdio>. Is it really the intent that FILE be a complete type or is an implementation allowed to just declare it without providing a full definition?

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2562
2010-10-21 18:28:33adminsetmessages: + msg2561
2003-09-18 00:00:00admincreate