Why overloading is not allowed for CV qualifier.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux