Summary:
This should fix the build breakage in hphp caused by the latest fbstring changes (after being ported to engshare). Note that I'm flying blind here; I couldn't test with the hphp build because I don't have write access to engshare. @agallagher could you please make sure that this works after the fix?
fbconfig -r hphp && fbmake dbg
Test Plan: tested on folly
Reviewed By: tudorb@fb.com
FB internal diff:
D880140
pos = random(0, test.size());
// Uncomment below to see a bug in gcc
/*res = */test.insert(test.begin() + pos, il);
+
+ // Test with actual input iterators
+ stringstream ss;
+ ss << "hello cruel world";
+ auto i = istream_iterator<char>(ss);
+ test.insert(test.begin(), i, istream_iterator<char>());
}
template <class String> void clause11_21_4_6_5(String & test) {