Title
forbid [u|bi]nary_function specialization
Status
c++11
Section
[depr.base]
Submitter
Alberto Ganesh Barbati

Created on 2009-11-30.00:00:00 last changed 162 months ago

Messages

Date: 2011-03-06.14:36:44

Proposed resolution:

Change paragraph [depr.base]/1 as follows:

1 The class templates unary_function and binary_function are deprecated. A program shall not declare specializations of these templates.

Date: 2011-03-06.00:00:00

[ 2011-03-06 Daniel comments ]

This meeting outcome was not properly reflected in the proposed resolution. I also adapted the suggested wording to the N3242 numbering and content state. During this course of action it turned out that the first suggested wording change has already been applied.

Date: 2011-03-07.23:12:14

[ 2010 Batavia: ]

Pete: Is this issue actually addressed by N3198, or did deprecating unary/binary_function?

We determined that this issue is NOT resolved and that it must be resolved or else N3198 could break code that does specialize unary/binary function.

Matt: don't move to NAD

Howard: I suggest we go further and move 1279 to ready for Madrid.

Group: Agrees move 1279 to ready for Madrid

Previous proposed resolution:

1 The following classes class templates are provided to simplify the typedefs of the argument and result types:. A program shall not declare specializations of these templates.

Date: 2010-10-24.00:00:00

[ 2010-10-24 Daniel adds: ]

Accepting n3145 would resolve this issue as NAD editorial.

Date: 2010-03-27.00:00:00

[ 2010-03-27 Daniel adds: ]

Accepting issue 1290 would resolve this issue as NAD editorial.

Date: 2009-11-30.00:00:00

A program should not be allowed to add specialization of class templates unary_function and binary_function, in force of [namespace.std]/1. If a program were allowed to specialize these templates, the library could no longer rely on them to provide the intended typedefs or there might be other undesired interactions.

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2011-04-11 11:23:23adminsetstatus: immediate -> wp
2011-03-25 09:55:23adminsetstatus: voting -> immediate
2011-03-06 14:36:44adminsetmessages: + msg5620
2011-03-05 15:24:28adminsetstatus: ready -> voting
2010-11-12 19:08:10adminsetstatus: nad editorial -> ready
2010-11-11 01:37:17adminsetmessages: + msg5327
2010-11-11 01:37:17adminsetstatus: new -> nad editorial
2010-10-24 21:24:55adminsetmessages: + msg5048
2010-10-21 18:28:33adminsetmessages: + msg1421
2010-10-21 18:28:33adminsetmessages: + msg1420
2009-11-30 00:00:00admincreate