workaround for freebsd/clang/libc++ build issues

Rather than relying on set's constructor from {}, explicitly construct
the set.
This commit is contained in:
Justin Viiret 2016-06-24 11:30:07 +10:00 committed by Matthew Barr
parent e3d416a6ea
commit e9cfbae68f
2 changed files with 3 additions and 2 deletions

View File

@ -881,7 +881,7 @@ namespace {
class OutfixAllReports : public boost::static_visitor<set<ReportID>> {
public:
set<ReportID> operator()(const boost::blank &) const {
return {};
return set<ReportID>();
}
template<class T>

View File

@ -1234,7 +1234,8 @@ bool attemptRoseGraphMerge(RoseBuildImpl &build, bool preds_same, RoseVertex a,
ReportID new_report = build.getNewNfaReport();
shared_ptr<NGHolder> new_graph = cloneHolder(*b_h);
duplicateReport(*new_graph, b_left.leftfix_report, new_report);
pruneReportIfUnused(build, new_graph, {}, b_left.leftfix_report);
pruneReportIfUnused(build, new_graph, set<RoseVertex>(),
b_left.leftfix_report);
rai.rev_leftfix[a_left_id].erase(a);
rai.rev_leftfix[b_left_id].erase(b);