Re: [boost] [algorithm][string] No algorithm::string problem (was: trim fails on VC8 with _HAS_ITERATOR_DEBUGGING=0

23 Feb
2006
23 Feb
'06
6:18 p.m.
Here's a smaller repro w/o Boost + trim. So, this is a pure Microsoft issue, but may be of some interest to those who are disabling iterator debugging. #define _HAS_ITERATOR_DEBUGGING 0 #include <iostream> #include <string> int main(int argc, const char* argv[]) { // Now, show that certain constructors are broken. const char *pc = "Iterator debugging is broken"; string s(pc,pc + 9); string::iterator i = s.erase(s.begin(),s.begin() + 2); return 0; }
7051
Age (days ago)
7051
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dave Moore