Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Pin
Pankaj D.Dubey22-Feb-10 18:13
Pankaj D.Dubey22-Feb-10 18:13 
GeneralRe: C++ Pin
KingsGambit22-Feb-10 18:20
KingsGambit22-Feb-10 18:20 
AnswerRe: C++ PinPopular
Avi Berger22-Feb-10 18:21
Avi Berger22-Feb-10 18:21 
GeneralRe: C++ Pin
Pankaj D.Dubey22-Feb-10 18:30
Pankaj D.Dubey22-Feb-10 18:30 
GeneralRe: C++ [modified] Pin
Avi Berger22-Feb-10 18:43
Avi Berger22-Feb-10 18:43 
GeneralRe: C++ Pin
Pankaj D.Dubey22-Feb-10 18:50
Pankaj D.Dubey22-Feb-10 18:50 
AnswerRe: C++ Pin
«_Superman_»22-Feb-10 19:26
professional«_Superman_»22-Feb-10 19:26 
GeneralRe: C++ Pin
Avi Berger22-Feb-10 19:51
Avi Berger22-Feb-10 19:51 
Definitely it is not safe. Even the same compiler in different situations in the source code could produce different results, as the OP seems to have experienced. The relative order of evaluation including application of side affects isn't fully specified by the standard, so the compiler gets to pick what's convenient - and can pick differently in different places.
Please do not read this signature.

GeneralRe: C++ Pin
Peter_in_278022-Feb-10 20:52
professionalPeter_in_278022-Feb-10 20:52 
GeneralRe: C++ Pin
KingsGambit22-Feb-10 21:03
KingsGambit22-Feb-10 21:03 
GeneralRe: C++ Pin
Peter Weyzen23-Feb-10 10:25
Peter Weyzen23-Feb-10 10:25 
GeneralRe: C++ Pin
Avi Berger23-Feb-10 6:34
Avi Berger23-Feb-10 6:34 
QuestionAbout array of BSTR Pin
eight22-Feb-10 16:48
eight22-Feb-10 16:48 
AnswerRe: About array of BSTR Pin
«_Superman_»22-Feb-10 17:01
professional«_Superman_»22-Feb-10 17:01 
QuestionGDI+ Problem! Pin
mostafa_pasha22-Feb-10 11:44
mostafa_pasha22-Feb-10 11:44 
AnswerRe: GDI+ Problem! Pin
Richard Andrew x6422-Feb-10 13:55
professionalRichard Andrew x6422-Feb-10 13:55 
GeneralRe: GDI+ Problem! Pin
LunaticFringe22-Feb-10 13:56
LunaticFringe22-Feb-10 13:56 
GeneralRe: GDI+ Problem! Pin
Richard Andrew x6422-Feb-10 13:58
professionalRichard Andrew x6422-Feb-10 13:58 
AnswerRe: GDI+ Problem! Pin
LunaticFringe22-Feb-10 13:55
LunaticFringe22-Feb-10 13:55 
GeneralRe: GDI+ Problem! Pin
mostafa_pasha22-Feb-10 18:51
mostafa_pasha22-Feb-10 18:51 
GeneralRe: GDI+ Problem! Pin
LunaticFringe22-Feb-10 19:49
LunaticFringe22-Feb-10 19:49 
AnswerRe: GDI+ Problem! Pin
KingsGambit22-Feb-10 20:57
KingsGambit22-Feb-10 20:57 
GeneralRe: GDI+ Problem! Pin
mostafa_pasha22-Feb-10 21:28
mostafa_pasha22-Feb-10 21:28 
GeneralRe: GDI+ Problem! Pin
Richard MacCutchan22-Feb-10 22:09
mveRichard MacCutchan22-Feb-10 22:09 
GeneralRe: GDI+ Problem! Pin
mostafa_pasha22-Feb-10 23:04
mostafa_pasha22-Feb-10 23: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.