Hi,
I was wondering what is the meaning of a function returning a const reference?
for example I have a function that defined like this:
const int& getNum() const;
how do I call this function, is
int i = getNum();
ok?
Thanks
Avi123
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 13 of 13
Thread: const referenceThreaded View
|
Click Here to Expand Forum to Full Width |