Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to end a thread Pin
Chen-XuNuo15-Dec-07 14:52
Chen-XuNuo15-Dec-07 14:52 
AnswerRe: How to end a thread Pin
Cedric Moonen13-Dec-07 20:26
Cedric Moonen13-Dec-07 20:26 
GeneralRe: How to end a thread Pin
Mark Salsbery13-Dec-07 20:38
Mark Salsbery13-Dec-07 20:38 
GeneralRe: How to end a thread Pin
Chen-XuNuo14-Dec-07 4:40
Chen-XuNuo14-Dec-07 4:40 
GeneralC2365 error Pin
subramanyeswari13-Dec-07 18:54
subramanyeswari13-Dec-07 18:54 
GeneralRe: C2365 error Pin
Mark Salsbery13-Dec-07 19:13
Mark Salsbery13-Dec-07 19:13 
GeneralRe: C2365 error Pin
subramanyeswari13-Dec-07 19:59
subramanyeswari13-Dec-07 19:59 
QuestionA non-const reference may only be bound to an lvalue? Pin
George_George13-Dec-07 18:50
George_George13-Dec-07 18:50 
Hello everyone,


I am debugging MSDN code from,

http://msdn2.microsoft.com/en-us/library/0eestyah(VS.80).aspx

here is my output,

1<main.cpp>
1<d:\visual studio="" 2008\projects\test_c4350\test_c4350\main.cpp(21)="" :="" warning="" c4350:="" behavior="" change:="B::B(A)" called="" instead="" of="B::B(B&)">
1&gt; d:\visual studio 2008\projects\test_c4350\test_c4350\main.cpp(13) : see declaration of 'B::B'
1&gt; d:\visual studio 2008\projects\test_c4350\test_c4350\main.cpp(9) : see declaration of 'B::B'
1&gt; A non-const reference may only be bound to an lvalue

I do not quite understand why there is a warning A non-const reference may only be bound to an lvalue and 'B::B(A)' called instead of 'B::B(B &)'? Could anyone give some descriptions please?


thanks in advance,
George</d:\visual></main.cpp>
AnswerRe: A non-const reference may only be bound to an lvalue? Pin
Iain Clarke, Warrior Programmer14-Dec-07 1:21
Iain Clarke, Warrior Programmer14-Dec-07 1:21 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
toxcct14-Dec-07 2:38
toxcct14-Dec-07 2:38 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
Iain Clarke, Warrior Programmer14-Dec-07 3:29
Iain Clarke, Warrior Programmer14-Dec-07 3:29 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
toxcct14-Dec-07 3:30
toxcct14-Dec-07 3:30 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
Nelek16-Dec-07 21:11
protectorNelek16-Dec-07 21:11 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
George_George14-Dec-07 17:56
George_George14-Dec-07 17:56 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
Iain Clarke, Warrior Programmer14-Dec-07 22:28
Iain Clarke, Warrior Programmer14-Dec-07 22:28 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
George_George16-Dec-07 2:24
George_George16-Dec-07 2:24 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
Iain Clarke, Warrior Programmer16-Dec-07 8:02
Iain Clarke, Warrior Programmer16-Dec-07 8:02 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
George_George16-Dec-07 20:50
George_George16-Dec-07 20:50 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
Iain Clarke, Warrior Programmer16-Dec-07 22:13
Iain Clarke, Warrior Programmer16-Dec-07 22:13 
GeneralRe: A non-const reference may only be bound to an lvalue? Pin
George_George16-Dec-07 22:35
George_George16-Dec-07 22:35 
QuestionHow to resolve such compile errors in VC++2005 Pin
kcynic13-Dec-07 18:19
kcynic13-Dec-07 18:19 
AnswerRe: How to resolve such compile errors in VC++2005 Pin
Mark Salsbery13-Dec-07 19:27
Mark Salsbery13-Dec-07 19:27 
GeneralRe: How to resolve such compile errors in VC++2005 Pin
kcynic13-Dec-07 19:40
kcynic13-Dec-07 19:40 
GeneralRe: How to resolve such compile errors in VC++2005 Pin
Mark Salsbery13-Dec-07 19:49
Mark Salsbery13-Dec-07 19:49 
GeneralRe: How to resolve such compile errors in VC++2005 Pin
kcynic13-Dec-07 19:57
kcynic13-Dec-07 19:57 

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.