Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
how I can refer to an overloaded function in decltype
Asked
Sep 18 '22 at 11:11
Active
Sep 18 '22 at 11:11
Viewed
22 times
1
void f(int); int f(void); typedef decltype(f) func_t; // error
Is there a way to make this possible?
c++
typedef
asked Sep 18 '22 at 11:11
1
`typedef decltype(static_cast
(f)) func_t;`
–
Eljay
Sep 18 '22 at 11:18
0 Answers
0