MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/C_Programming/comments/1u2twhq/mimicking_of_function_overloading/or2hy0l/
r/C_Programming • u/marc_b_reynolds • Jun 11 '26
https://godbolt.org/z/EWTrceG5s
24 comments sorted by
View all comments
Show parent comment
1
Yes, it's possible, but it's more complex and would also then start to require compiler extensions for using typeof.
3 u/marc_b_reynolds Jun 11 '26 edited Jun 11 '26 Just out of curiosity I tracked back to the oldest versions of clang , GCC & VC that work without any mods: 12.0.0 / 8.1 & 19.40 respectivelyhttps://godbolt.org/z/5Ta8EWj4e 2 u/vitamin_CPP Jun 13 '26 Thanks for sharing. I'm surprised by the MSVC support!
3
Just out of curiosity I tracked back to the oldest versions of clang , GCC & VC that work without any mods: 12.0.0 / 8.1 & 19.40 respectively
https://godbolt.org/z/5Ta8EWj4e
2 u/vitamin_CPP Jun 13 '26 Thanks for sharing. I'm surprised by the MSVC support!
2
Thanks for sharing. I'm surprised by the MSVC support!
View all comments
Show parent comment
1
u/florianist Jun 11 '26
Yes, it's possible, but it's more complex and would also then start to require compiler extensions for using typeof.