You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess the answer is you can't as bar may not use any storage (like here is an alias for foo), so you can't uses its address to specialize the template?
Hey, thank you for bringing this up. I believe that your conclusion is correct, a pointer to reference is illegal in C , thus we cannot instantiate the "getter" template. I'll update the limitations section.
Awesome little header, is there a way to access a private member that is a reference?
It's not listed as a limitation, but I could not find a test for it.
I did some experiments in g but I got some compilation errors, for example:
The text was updated successfully, but these errors were encountered: