This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Why overloading is not allowed for CV qualifier.
- From: Mustafa4LP <mustafa dot hussain at nechclst dot in>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 5 Feb 2009 23:23:27 -0800 (PST)
- Subject: 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.