|
|
|
|
|
by tialaramex
1293 days ago
|
|
The interesting thing is that you can't call the "function that takes a pointer". Accessing it as a method is the only thing which works. A long term ambition for C++ and more specifically for Bjarne has been UFCS, Universal Function Call Syntax, which a few other languages have. But C++ can't do this today. |
|
Example: https://godbolt.org/z/6Y1raxMce