C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::function with default arguments

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 05 Mar 2025 06:51:25 -0800
On Wednesday, 5 March 2025 06:18:17 Pacific Standard Time Frederick Virchanza
Gotham wrote:
> It's a bit of a mammoth, but I gave it a scroll through. Unless I've
> missed something, I don't see any part where you can get a function's
> default arguments.

That would be the answer I'm looking for.

If that proves to be accurate, then the proposal for functions-with-stored-
default-arguments could be used as a motivation for adding this (probably to
C++29).

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2025-03-05 14:51:28