This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
implicit type cast problem of reference of ponter to const type
- From: Steve Yee <yitonglu at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 16 Apr 2005 13:13:46 +0800
- Subject: implicit type cast problem of reference of ponter to const type
- Reply-to: Steve Yee <yitonglu at gmail dot com>
the following code can not compile. is it due to the standard?
void testfun(const int *&pr)
{
}
main()
{
int *p;
testfun(p);
}