Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: compiler error Pin
Chandrasekharan P9-Jun-09 19:48
Chandrasekharan P9-Jun-09 19:48 
GeneralRe: compiler error Pin
ali kanju9-Jun-09 20:16
ali kanju9-Jun-09 20:16 
Questionfree and delete[] Pin
hawk23reddy9-Jun-09 17:28
hawk23reddy9-Jun-09 17:28 
AnswerRe: free and delete[] Pin
«_Superman_»9-Jun-09 17:55
professional«_Superman_»9-Jun-09 17:55 
GeneralRe: free and delete[] Pin
N a v a n e e t h9-Jun-09 18:02
N a v a n e e t h9-Jun-09 18:02 
GeneralRe: free and delete[] Pin
«_Superman_»9-Jun-09 18:05
professional«_Superman_»9-Jun-09 18:05 
GeneralRe: free and delete[] Pin
Stuart Dootson9-Jun-09 22:37
professionalStuart Dootson9-Jun-09 22:37 
GeneralRe: free and delete[] Pin
N a v a n e e t h10-Jun-09 0:01
N a v a n e e t h10-Jun-09 0:01 
Stuart Dootson wrote:
C++ references are implemented as a pointer - trust me


Are you saying it is implemented as pointers behind the scenes? I have checked GCC's documentation and other pages. But couldn't find how they implemented it.

AFAIK, C++ standard doesn't tell anything about how a compiler should implement references. A pointer has a memory address and it's own space on the stack whereas a reference share the same address of the original variable. Also the statements in FAQ[^] and whatever you said is not matching (see the Important note specially). Or am I missing something here?

Smile | :)


GeneralRe: free and delete[] Pin
Stuart Dootson10-Jun-09 0:13
professionalStuart Dootson10-Jun-09 0:13 
GeneralRe: free and delete[] Pin
N a v a n e e t h10-Jun-09 0:21
N a v a n e e t h10-Jun-09 0:21 
GeneralRe: free and delete[] Pin
Randor 11-Jun-09 14:12
professional Randor 11-Jun-09 14:12 
AnswerRe: free and delete[] Pin
N a v a n e e t h9-Jun-09 17:58
N a v a n e e t h9-Jun-09 17:58 
GeneralRe: free and delete[] Pin
chirag_chauhan9-Jun-09 19:33
chirag_chauhan9-Jun-09 19:33 
QuestionDecoding(decompressing) an image Pin
Bhavani_mnnit9-Jun-09 15:49
Bhavani_mnnit9-Jun-09 15:49 
AnswerRe: Decoding(decompressing) an image Pin
«_Superman_»9-Jun-09 16:08
professional«_Superman_»9-Jun-09 16:08 
GeneralRe: Decoding(decompressing) an image Pin
Bhavani_mnnit9-Jun-09 20:39
Bhavani_mnnit9-Jun-09 20:39 
QuestionSTRRET Structure Question Pin
nm_1149-Jun-09 14:02
nm_1149-Jun-09 14:02 
GeneralRe: STRRET Structure Question Pin
Michael Dunn9-Jun-09 16:09
sitebuilderMichael Dunn9-Jun-09 16:09 
AnswerRe: STRRET Structure Question Pin
«_Superman_»9-Jun-09 16:16
professional«_Superman_»9-Jun-09 16:16 
GeneralRe: STRRET Structure Question Pin
nm_1149-Jun-09 17:22
nm_1149-Jun-09 17:22 
GeneralRe: STRRET Structure Question Pin
«_Superman_»9-Jun-09 17:24
professional«_Superman_»9-Jun-09 17:24 
GeneralRe: STRRET Structure Question Pin
nm_1149-Jun-09 17:37
nm_1149-Jun-09 17:37 
QuestionDeployment Error. Pin
FISH7869-Jun-09 13:51
FISH7869-Jun-09 13:51 
AnswerRe: Deployment Error. Pin
chirag_chauhan9-Jun-09 19:35
chirag_chauhan9-Jun-09 19:35 
AnswerRe: Deployment Error. Pin
Cedric Moonen9-Jun-09 20:04
Cedric Moonen9-Jun-09 20:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.