
At Wednesday 2004-08-11 09:56, you wrote:
Hello,
a momemnt ago, someone reported a problem on IRC regarding
where on IRC? I should probably hang out in there
boost::filesystem::path::iterator. He basically has code like this:
using boost::filesystem::path; path::iterator i = somepath.begin(); path::iterator j = i++;
That code used to work but stopped working recently. Now, there is a compiler error saying that the value returned by i++ is not suitable for constructing j:
error: conversion from ` boost::detail::postfix_increment_proxy<boost::filesystem::path::iterator>' to non-scalar type `boost::filesystem::path::iterator' requested
I suspect the change was caused by a recent change to iterator adaptors.
Investigation of the problem revealed that the documenation for path::iterator says it is a bidirectional iterator while the implementation uses single_pass_traversal_tag. This looks wrong to me.
Regards, m _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: "There oughta be a law"