The patch of <boost/algorithm/string/find.hpp> did work.

Then what's the conclusion? Could anyone reproduce my difficulty? Or it is just my missing something when using find_first with "boost/range/algorithm.hpp"?

2009/7/7 Neil Groves <neil@grovescomputing.com>


On Mon, Jul 6, 2009 at 5:42 PM, S.C. Leung <shaochiliang@gmail.com> wrote:
No, where can I get the patch. Is it in the range_ex.zip? 

It's attached in this thread in a previous post. It's not a patch for range because range correctly has protection against accidental ADL. If the problem is accidental ADL the defect is in Boost.Algorithm. I, however, cannot explain how a std::string would cause an ADL problem internally within a boost namespace. I simply provided the file to eliminate or confirm Thorsten's hypothesis.

I'll send the file again to you at your email address. It needs to replace <boost/algorithm/string/find.hpp>.

Regards,
Neil Groves

 

2009/7/6 Neil Groves <neil@grovescomputing.com>

On Mon, Jul 6, 2009 at 3:22 PM, S.C. Leung <shaochiliang@gmail.com> wrote:
Hello, Thorsten:

Have you test my case and had the same problem with me? Does it mean that the library should call the function explicitly?

Did you try the patch for Boost.Algorithm that I supplied in my last post? This will confirm / deny accidental ADL as the cause.

It is the next logical debugging step.
 

Thanks!
S.C. Leung

Regards,
Neil Groves
 
[...]


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users