This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why overloading is not allowed for CV qualifier.


Hi all,

Why is it that following program is not compilable. (g++)

//test.cpp
int fun(int i){}
int fun(const int i){}

Why CV qualifier cannot distinguish two functions for overloading ?

Regards,
Mustafa.
-- 
View this message in context: http://www.nabble.com/Why-overloading-is-not-allowed-for-CV-qualifier.-tp21867770p21867770.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]