Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67722 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2011-01-06 11:08:06


Author: jewillco
Date: 2011-01-06 11:08:05 EST (Thu, 06 Jan 2011)
New Revision: 67722
URL: http://svn.boost.org/trac/boost/changeset/67722

Log:
Added disambiguation of regex_replace() overloads for VC++ 7.1
Text files modified:
   trunk/boost/graph/graphviz.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/graph/graphviz.hpp
==============================================================================
--- trunk/boost/graph/graphviz.hpp (original)
+++ trunk/boost/graph/graphviz.hpp 2011-01-06 11:08:05 EST (Thu, 06 Jan 2011)
@@ -67,7 +67,9 @@
     if (regex_match(s, valid_unquoted_id)) {
       return s;
     } else {
- return "\"" + regex_replace(s, sregex(as_xpr('"')), "\\\"") + "\"";
+ // The explicit template arguments here are to disambiguate the two
+ // overloads of regex_replace() on VC++ 7.1.
+ return "\"" + regex_replace<std::string, std::string::const_iterator>(s, sregex(as_xpr('"')), "\\\"") + "\"";
     }
   }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk