[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
typedef and *& ????
From: |
Chabane Rezzik |
Subject: |
typedef and *& ???? |
Date: |
Mon, 17 Sep 2001 10:39:41 -0500 |
Why doesn't this compile?
typedef int Integer;
void get( int*& ) {};
int main( int argc, char* argv[] ) {
Integer* x;
get( x ); <---- Compile error
}
Here is the compile error:
test.cc: In function `int main(int, char **)':
test.cc:7: initializing non-const `int *&' with `Integer *' will use a
temporary
test.cc:3: in passing argument 1 of `get(int *&)'
Thanks,
Chabane
--
Alcatel USA Internet: address@hidden
1000 Coit Road Plano, Texas 75075
**** The opinions expressed are not those of Alcatel USA ****
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- typedef and *& ????,
Chabane Rezzik <=