Standardization

N3967-69: Library Issues Lists -- Alisdair Meredith

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 numbers: N3967-69

Date: 2014-03-24

C++ Standard Library Active Issues List (Revision R88)

C++ Standard Library Defect Report List (Revision R88)

C++ Standard Library Closed Issues List (Revision R88)

by Alisdair Meredith

N4043: Dynarray Allocation Context -- Lawrence Crowl

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: N4043

Date: 2014-05-22

Dynarray Allocation Context

by Lawrence Crowl

Excerpt:

Introduction

The dynarray class (N3662 C++ Dynamic Arrays and N3820 Working Draft, Technical Specification — Array Extensions) and any other named class attempting to use the execution stack for allocation may suffer failure if the class is reallocated with in-place destruction and a placement new. This problem is described in N3899 Nested Allocation section Nested Lifetime. We need specific wording to address this case.

Solution

We choose to permit the stack optimization for constructors called an automatic variables and then only if not called with the placement new operator. This change effectively requires the compiler to recognize the context of a constructor call and, when appropriate, change the implementation to an alternate implementation.

N4042: Safe conversions in unique_ptr<T[]> -- Geoffrey Romer

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: N4042

Date: 2014-05-23

Safe conversions in unique_ptr<T[]>

by Geoffrey Romer

Excerpt:

This paper proposes to resolve LWG 2118 by permitting conversions to unique_ptr<T[]> if they are known to be safe.

N4038: Proposal for Unbounded-Precision Integer Types -- Pete Becker

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: N4038

Date: 2014-05-23

Proposal for Unbounded-Precision Integer Types

by Pete Becker

Excerpt:

What’s New in this Revision

  • In integer, replaced constructors taking arithmetic types with a templated constructor and added a templated assignment operator for arithmetic types. In bits, replaced constructors taking integral types with a templated constructor and added a templated assignment operator for integral types.
  • Added integer::is_zero.
  • Added noexcept to unary integer::operator- and unary integer::operator+.
  • Added several issues raised by Marc Glisse.

Overview

Programmers sometimes need to manipulate integer values that are too large to repesent with C++’s standard integer types. Doing a Google search for terms that describe large integers produces many hits for libraries that handle large integers. These libraries vary in quality, from hacks by beginners to sophisticated, professional implementations. Also, Java has unbounded precision integers as part of its standard class library.

One important use for unbounded-precision integers is cryptography. Cryptographic applications typically manipulate integer values of several hundred digits. If the C++ standard library provides facilities for such values it will make cryptographic applications easier to write and to port. ...

N4033: synchronized_value for associating a mutex with a value -- Anthony Williams

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: N4033

Date: 2014-05-23

synchronized_value for associating a mutex with a value

by Anthony Williams

Excerpt:

A couple of years ago I wrote an article for Dr Dobb's Journal discussing a synchronized_value template to associate a mutex with a value. I'd like to propose that template for standardization, with a few modifications.

The basic idea is that synchronized_value<T> stores a value of type T and a mutex. It then exposes a pointer interface, such that derefencing the pointer yields a special wrapper type that holds a lock on the mutex, and that can be implicitly converted to T for reading, and which forwards any values assigned to the assignment operator of the underlying T for writing. There is also an arrow operator which allows member functions on the wrapped value to be called...

N4032: Comments on continuations and executors -- Anthony Williams

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: N4032

Date: 2014-05-23

Comments on continuations and executors

by Anthony Williams

Excerpt:

Having implemented the concurrency extensions from D3904 from the Issaquah wiki, it is apparent that there are several aspects of the specification which are incomplete, and others which I find undesirable.

This paper attempts to enumerate those aspects, and proposes fixes and suggestions.

N4026: Nested namespace definition -- Robert Kawulak

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: N4026

Date: 2014-05-23

Nested namespace definition

by Robert Kawulak

Excerpt:

The paper proposes allowing the use of a qualified name in a namespace definition to define several nested namespaces at once, for example:

    namespace A::B::C {
        //...
    }

The code above would be equivalent to:

    namespace A {
        namespace B {
            namespace C {
                //...
            }
        }
    }   


The feature was already proposed by Jon Jagger in 2003 in the paper N1524 Nested Namespace Definition Proposal, but it has been listed in N2869 State of C++ Evolution (Post San Francisco 2008) under “Not ready for C++0x, but open to resubmit in future”.

N4017: Non-member size() and more -- Riccardo Marcangelo

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: N4017

Date: 2014-05-22

Non-member size() and more

by Riccardo Marcangelo

Excerpt:

This is a proposal to add non-member std::size and other useful utility functions (std::empty, std::front, std::back, and std::data). The inclusion of these functions would provide benefits in regards to safety, efficiency, and generality.

N3971: Concurrency TS Editor's Report, May 2014 -- Artur Laksberg

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: N3971

Date: 2014-05-22

Concurrency TS Editor's Report, May 2014

by Artur Laksberg

Excerpt:

N3970 is the Concurrency TS Draft. It is based on D3904 with the following changes as per LEWG feedback: ...

N3970: Working Draft, Technical Specification for C++ Extensions for Concurrency -- Artur Laksberg

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: N3970

Date: 2014-05-22

Working Draft, Technical Specification for C++ Extensions for Concurrency

by Artur Laksberg

Excerpt:

1This technical specification describes a number of concurrency extensions to the C++ Standard Library (1.2). These extensions are classes and functions that are likely to be used widely within a program and/or on the interface boundaries between libraries written by different organizations.