cplusplus / nbballot

Handling of NB comments in response to ballots
14 stars 4 forks source link

JP009 20.12.3.2 p11 Bad syntax for variadic template declaration #385

Closed jensmaurer closed 3 years ago

jensmaurer commented 3 years ago

In the following definition, first argument of the new_object function should have “…” after class. template<class T, class CtorArgs...> [[nodiscard]] T* new_object(CtorArgs&&... ctor_args);

Change the example as follows: template<class T, class... CtorArgs> [[nodiscard]] T* new_object(CtorArgs&&... ctor_args)

JP11

tkoeppe commented 3 years ago

Final disposition: Accepted.