C++ Logo

std-proposals

Advanced search

[std-proposals] concepts in function param list

From: Abdullah Qasim <iamminecraftredstoner_at_[hidden]>
Date: Sun, 1 May 2022 08:03:22 +0000
Why must we do this:

// concept C
template <C ...T >
decltype(auto) func (T ...args)
{
          return args + ...;
}

So unnecessary!

Why not:

decltype(auto) func (C ...args)
{
          Return args + ...;
}

??

Not hard to implement, as auto in param list is already implemented.
This would help lots, & would speed up coding, making it more maintainable too!

Received on 2022-05-01 08:03:24