Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6359: Intel Composer XE 2011 (12.0) fails to build Boost.Regex with ICU support
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-01-05 13:32:49
#6359: Intel Composer XE 2011 (12.0) fails to build Boost.Regex with ICU support
-------------------------------------------------+--------------------------
Reporter: Brian Bassett <bbassett@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
Version: Boost 1.48.0 | Severity: Regression
Resolution: | Keywords: intel-win-12.0
-------------------------------------------------+--------------------------
Comment (by johnmaddock):
Confirmed.
Reduced test case is just:
{{{
void test(...);
void test(const int*&);
int main()
{
int * p = 0;
test(p);
}
}}}
Reported to Intel as support issue #656654.
A workaround is:
{{{
Index: regex_format.hpp
===================================================================
--- regex_format.hpp (revision 76120)
+++ regex_format.hpp (working copy)
@@ -180,8 +180,14 @@
}
inline int toi(ForwardIter& i, ForwardIter j, int base)
{
+#if defined(_MSC_VER) && defined(__INTEL_COMPILER) && (__INTEL_COMPILER
== 9999)
+ // Workaround for Intel support issue #656654.
+ // See also https://svn.boost.org/trac/boost/ticket/6359
+ return toi(i, j, base, mpl::false_());
+#else
typedef typename boost::is_convertible<ForwardIter, const
char_type*&>::type tag_type;
return toi(i, j, base, tag_type());
+#endif
}
const traits& m_traits; // the traits class for localised
formatting operations
}}}
HTH, John.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6359#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC