U++ framework
Do not panic. Ask here before giving up.

Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » Trouble with pointers.
Re: Trouble with pointers. [message #11169 is a reply to message #11168] Sat, 25 August 2007 08:38 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Reference and pointer is not the same thing.

"temp" is pointer, but you are trying to return the reference there.

You have to use "*" to convert a pointer to a l-value, which is then convertible to reference. You have to use "&" to convert l-value or reference to a pointer.

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: How to use string array with functions?
Next Topic: File List with FtpClient
Goto Forum:
  


Current Time: Fri Oct 30 21:52:23 GMT+1 2026

Total time taken to generate the page: 0.00470 seconds