New adopted paper: N3656, make_unique (Revision 1) -- Stephan T. Lavavej

Save to:
Instapaper Pocket Readability

Note: This paper was adopted into draft C++14 on Saturday at the Bristol UK ISO C++ meeting.

A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.

Document number: N3656.txt

Date: 2013-04-18

make_unique (Revision 1)

by Stephan T. Lavavej

The paper includes source code for a complete implementation.

Add a Comment

Comments are closed.

Comments (2)

1 0

MichaelMueller said on Apr 23, 2013 04:34 PM:

Why should an array type with a known bound, T[N], be unconstructable through make_unique?
0 0

Nathan Binkert said on Jun 24, 2013 11:24 AM:

I can't seem to add a comment to the one below, but I must echo the question of why make unique T[N] is disallowed. Based on some of your earlier work, I did (and use) a sample implementation and it seems to work (though I'm certainly not an expert, so I'd welcome being educated.)

https://github.com/binkert/make_unique/blob/master/make_unique.hh