Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltypedef Pin
George_George18-Feb-08 20:25
George_George18-Feb-08 20:25 
AnswerRe: typedef Pin
Rajkumar R18-Feb-08 20:45
Rajkumar R18-Feb-08 20:45 
GeneralRe: typedef Pin
George_George18-Feb-08 20:50
George_George18-Feb-08 20:50 
GeneralRe: typedef Pin
Prasanth M V18-Feb-08 21:38
Prasanth M V18-Feb-08 21:38 
GeneralRe: typedef Pin
George_George18-Feb-08 21:43
George_George18-Feb-08 21:43 
GeneralRe: typedef Pin
Rajkumar R18-Feb-08 22:28
Rajkumar R18-Feb-08 22:28 
GeneralRe: typedef Pin
George_George19-Feb-08 14:14
George_George19-Feb-08 14:14 
GeneralRe: typedef Pin
Rajkumar R18-Feb-08 22:24
Rajkumar R18-Feb-08 22:24 
George_George wrote:
it does not compile because const is qualified on (the whole) type int& not on the near one int, right?

his question,
rcInt ref = 0;
const int_ref_t x = 0;
both evaluates to a reading const int &x = 0; then how compiler interprets

Prasanth M V wrote:
U are getting error not beacuse of "const", but as it is reference variable.

how about rcInt ref = 0; it is also a reference variable.

how the error because of reference variable came here, because in the expression,
const int_ref_t x, const qualifier on reference type (int_ref_t) is ignored and x become the type int &. while compiler interprets rcInt ref = 0, as reference variable of type const int.
GeneralRe: typedef Pin
Prasanth M V18-Feb-08 22:37
Prasanth M V18-Feb-08 22:37 
GeneralRe: typedef Pin
Rajkumar R18-Feb-08 22:50
Rajkumar R18-Feb-08 22:50 
GeneralRe: typedef Pin
Prasanth M V18-Feb-08 23:46
Prasanth M V18-Feb-08 23:46 
QuestionCRT Security and Gotcha Pin
suhast18-Feb-08 20:24
suhast18-Feb-08 20:24 
GeneralRe: CRT Security and Gotcha Pin
James R. Twine10-Mar-08 4:52
James R. Twine10-Mar-08 4:52 
GeneralE_NOINTERFACE Pin
john563218-Feb-08 19:59
john563218-Feb-08 19:59 
AnswerRe: E_NOINTERFACE Pin
Rajkumar R18-Feb-08 20:16
Rajkumar R18-Feb-08 20:16 
GeneralRe: E_NOINTERFACE Pin
john563218-Feb-08 20:34
john563218-Feb-08 20:34 
GeneralQuestion about Mutex and Atoms. [modified] Pin
User 238229218-Feb-08 19:55
User 238229218-Feb-08 19:55 
GeneralRe: Question about Mutex and Atoms. Pin
Iain Clarke, Warrior Programmer18-Feb-08 22:25
Iain Clarke, Warrior Programmer18-Feb-08 22:25 
Generalimport address table (IAT) Pin
George_George18-Feb-08 19:32
George_George18-Feb-08 19:32 
GeneralRe: import address table (IAT) [modified] Pin
User 238229218-Feb-08 19:43
User 238229218-Feb-08 19:43 
GeneralRe: import address table (IAT) Pin
George_George18-Feb-08 20:10
George_George18-Feb-08 20:10 
GeneralRegistering an OCX Pin
Chandrasekharan P18-Feb-08 18:59
Chandrasekharan P18-Feb-08 18:59 
QuestionRe: Registering an OCX Pin
Rajesh R Subramanian18-Feb-08 19:18
professionalRajesh R Subramanian18-Feb-08 19:18 
GeneralRe: Registering an OCX Pin
Chandrasekharan P18-Feb-08 19:27
Chandrasekharan P18-Feb-08 19:27 
AnswerRe: Registering an OCX Pin
Rajesh R Subramanian18-Feb-08 19:39
professionalRajesh R Subramanian18-Feb-08 19:39 

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.