A compile-time error, apparently to support compatibility with C.
Now... I did this with pointers like so,Code:void foo (int); void foo (const int);
...and it compiled just fine. My question is, why? I would like to understand this past the simple notion that function overloading makes no distinction between const types unless they are pointers to const.Code:void foo (int*); void foo (const int*);