algorithm/string/iterator_range: copy-construction from singular iterator

Hi, Almost all is said in the subject. According to 24.1-5 it is undefined behavior; consequently default initialized parameters cannot be used. So here comes a patch. I didn't put the half constructor (only a "begin" parameter, no "end" parameter) because I don't think it makes sense; but if it does, just add it. Regards, Guillaume

Hi Guillaume,
Almost all is said in the subject. According to 24.1-5 it is undefined behavior; consequently default initialized parameters cannot be used. So here comes a patch. I didn't put the half constructor (only a "begin" parameter, no "end" parameter) because I don't think it makes sense; but if it does, just add it.
I've comitted your patch, since the error look 100% clear. I also looked at other failures in current tests and fixed two similiar problems in BGL. Let's see what else there are on gcc 3.4.... Thanks, Volodya
participants (2)
-
Guillaume Melquiond
-
Vladimir Prus