Date
2017-06-06.14:03:11
Message id
9234

Content

Proposed resolution:

  1. Add to the array synopsis in [sequences]:

    template<class... Args>
      array<CT, sizeof...(Args)>
      make_array(Args&&... args);
    
  2. Append after [array.tuple] "Tuple interface to class template array" the following new section:

    XX.X.X.X Array creation functions [array.creation]

    
    template<class... Args>
    array<CT, sizeof...(Args)>
    make_array(Args&&... args)
    

    Let CT be decay<common_type<Args...>::type>::type.

    Returns: An array<CT, sizeof...(Args)> initialized with { static_cast<CT>(std::forward<Args>(args))... }.

    [Example:

    
    int i = 0; int& ri = i;
    make_array(42u, i, 2.78, ri);
    

    returns an array of type

    
    array<double, 4>
    

    end example]