Click here to Skip to main content
15,920,801 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralVSSDatabase Pin
JabraJabra9-Feb-05 22:57
JabraJabra9-Feb-05 22:57 
GeneralRe: VSSDatabase Pin
Michael Bergman10-Feb-05 11:00
Michael Bergman10-Feb-05 11:00 
GeneralRe: VSSDatabase - thanks Pin
JabraJabra13-Feb-05 22:47
JabraJabra13-Feb-05 22:47 
GeneralCodeModel object Pin
JabraJabra9-Feb-05 22:55
JabraJabra9-Feb-05 22:55 
GeneralCompile error Pin
zsombor9-Feb-05 6:39
zsombor9-Feb-05 6:39 
GeneralRe: Compile error Pin
Stuart Dootson9-Feb-05 20:38
professionalStuart Dootson9-Feb-05 20:38 
QuestionWhat overloaded member function called in if(iterator) Pin
DevendraC8-Feb-05 0:41
DevendraC8-Feb-05 0:41 
AnswerRe: What overloaded member function called in if(iterator) Pin
Joaquín M López Muñoz8-Feb-05 5:22
Joaquín M López Muñoz8-Feb-05 5:22 
As you point out, there's no official procedure in the STL specification to test an iterator in such a way. What's happening is that, for vector alone, and for your particular compiler, vector::iterator happens to be an actual pointer, so the expression makes sense --it tests whether the pointer is non-null, which makes little sense in the given context. This is non-portable and you are not guaranteed that the test yield any significative result. Most likely what's intended is the following:
if(it!=nArray.end()){
  ...
}
Hope this helps,

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Want a Boost forum in Code Project? Vote here[^]!
GeneralRe: What overloaded member function called in if(iterator) Pin
DevendraC8-Feb-05 17:33
DevendraC8-Feb-05 17:33 
GeneralRe: What overloaded member function called in if(iterator) Pin
guypremont9-Feb-05 3:04
guypremont9-Feb-05 3:04 
GeneralRe: What overloaded member function called in if(iterator) Pin
Michael Dunn10-Feb-05 10:27
sitebuilderMichael Dunn10-Feb-05 10:27 
Generalusing cout in template argument... Pin
Malcolm Smart7-Feb-05 22:23
Malcolm Smart7-Feb-05 22:23 
GeneralRe: using cout in template argument... Pin
Joaquín M López Muñoz8-Feb-05 5:35
Joaquín M López Muñoz8-Feb-05 5:35 
GeneralRe: using cout in template argument... Pin
Malcolm Smart8-Feb-05 21:44
Malcolm Smart8-Feb-05 21:44 
GeneralControl's window not ready even in FinalConstruct() Pin
greekgoddj7-Feb-05 5:21
greekgoddj7-Feb-05 5:21 
GeneralRe: Control's window not ready even in FinalConstruct() Pin
Michael Dunn7-Feb-05 7:02
sitebuilderMichael Dunn7-Feb-05 7:02 
GeneralRe: Control's window not ready even in FinalConstruct() Pin
Jörgen Sigvardsson7-Feb-05 8:58
Jörgen Sigvardsson7-Feb-05 8:58 
GeneralRe: Control's window not ready even in FinalConstruct() Pin
greekgoddj9-Feb-05 5:42
greekgoddj9-Feb-05 5:42 
GeneralRe: Control's window not ready even in FinalConstruct() Pin
Anonymous17-Feb-05 3:40
Anonymous17-Feb-05 3:40 
Questionhow to add new file to vss Pin
JabraJabra6-Feb-05 5:42
JabraJabra6-Feb-05 5:42 
AnswerRe: how to add new file to vss Pin
Igor Vigdorchik6-Feb-05 12:38
Igor Vigdorchik6-Feb-05 12:38 
GeneralRe: how to add new file to vss Pin
JabraJabra9-Feb-05 5:06
JabraJabra9-Feb-05 5:06 
GeneralArrays in VBA Pin
speedcat 4455-Feb-05 10:37
speedcat 4455-Feb-05 10:37 
GeneralWTL Linker error Pin
Franz Klein3-Feb-05 23:51
Franz Klein3-Feb-05 23:51 
QuestionCreating a CEdit in ATL ActiveX control with MFC Support? Pin
greekgoddj3-Feb-05 22:42
greekgoddj3-Feb-05 22:42 

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.