Opened 10 years ago

Closed 10 years ago

#7346 closed Bugs (fixed)

Range algorithm_ext makes compile error

Reported by: Yusuke Ichinohe <yusuke.ichinohe@…> Owned by: Marshall Clow
Milestone: To Be Determined Component: string_algo
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

Follwing code raises compaile error in Visual C++ 2005/2008/2010/2012.

#include <boost/algorithm/string/replace.hpp>
#include <boost/range/algorithm_ext.hpp>
#include <string>

int main()
{
	std::string s;
	boost::algorithm::replace_all_copy(s, "", "");
	boost::algorithm::replace_first_copy(s, "", "");
}

Attachments (1)

find_format.diff (2.0 KB ) - added by Yusuke Ichinohe <yusuke.ichinohe@…> 10 years ago.
Fix for this problem

Download all attachments as: .zip

Change History (3)

by Yusuke Ichinohe <yusuke.ichinohe@…>, 10 years ago

Attachment: find_format.diff added

Fix for this problem

comment:1 by Marshall Clow, 10 years ago

(In [80809]) Qualified some calls to insert to remove ambiguity; Refs #7346 Thanks to Yusuke Ichinohe for the bug report/fix

comment:2 by Marshall Clow, 10 years ago

Resolution: fixed
Status: newclosed

(In [81832]) Merge from trunk; Fixes #7346

Note: See TracTickets for help on using tickets.