Title
return value of std::get_temporary_buffer
Status
cd1
Section
[depr.temporary.buffer]
Submitter
Martin Sebor

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

Messages

Date: 2010-10-21.18:28:33

[ Kona: Matt provided wording ]

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [meta.help] paragraph 2 from "...or a pair of 0 values if no storage can be obtained" to "...or a pair of 0 values if no storage can be obtained or if n <= 0."

Date: 2003-09-18.00:00:00

The standard is not clear about the requirements on the value returned from a call to get_temporary_buffer(0). In particular, it fails to specify whether the call should return a distinct pointer each time it is called (like operator new), or whether the value is unspecified (as if returned by malloc). The standard also fails to mention what the required behavior is when the argument is less than 0.

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