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 05:55:34 -0800
On Wednesday, 5 March 2025 05:48:50 Pacific Standard Time Frederick Virchanza
Gotham wrote:
> The code I gave you earlier today is from a make-believe universe
> where C++ has reflection (in the namespace std::Reflection). Using the
> make-believe reflection features, the constructor of
> std::function_defargs can get the default arguments from the function
> pointer (note that the constructor is consteval).
>
> Not sure what you're saying here. My code shows how it would be
> possible to compose the class 'std::function_defargs' using reflection
> features.

I'm asking you if the proposed C++26 reflection in non-make-believe universe
works for your case.

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

Received on 2025-03-05 13:55:37