function overloading of address
bearophile via Digitalmars-d
digitalmars-d at puremagic.com
Tue Dec 2 18:11:54 PST 2014
sdvcn:
> void ac(int aa)
> {
> }
>
> void ac(void *a2)
> {
> }
>
> int main(string[] argv)
> {
> auto v = ∾ //<--- who address
> }
>
>
> who get "void ac(int aa)" address ?
This code:
void foo(int) {}
void foo(void*) {}
void main() {
auto pfoo = &foo;
}
Gives:
test.d(5,17): Error: cannot infer type from overloaded function
symbol & foo
Bye,
bearophile
More information about the Digitalmars-d
mailing list