From 98377b57aa6ed0b41fe9c66596461c15e25c7b9f Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 9 Feb 2002 15:49:04 +0000 Subject: [PATCH] Strange workaround for Comeau 4.2.45.2 so that it does get into an instantiation loop [SVN r12773] --- src/c_regex_traits.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/c_regex_traits.cpp b/src/c_regex_traits.cpp index a0b2e0f7..d2ab2608 100644 --- a/src/c_regex_traits.cpp +++ b/src/c_regex_traits.cpp @@ -40,6 +40,12 @@ #include #endif +// Fixes a very strange bug in Comeau 4.2.45.2 that would otherwise result in +// an instantiation loop +#if defined(__COMO__) && __COMO_VERSION__ <= 4245 +void c_regex_adopted_no_longer_needed_loop_shutter_upper() { } +#endif + namespace{ // @@ -91,7 +97,6 @@ struct collate_name_t { std::string name; std::string value; - collate_name_t(){} collate_name_t(const char* p1, const char* p2, const char* p3, const char* p4) : name(p1, p2), value(p3, p4) {} }; @@ -1044,5 +1049,5 @@ unsigned int BOOST_REGEX_CALL c_regex_traits::strwiden(wchar_t *s1, uns #endif // BOOST_NO_WREGEX - } // namespace boost +