GCC warning suppression fixes.

Fixes #3071.

[SVN r53274]
This commit is contained in:
John Maddock
2009-05-26 08:31:23 +00:00
parent d279b2c0a1
commit 944a01f39e
2 changed files with 19 additions and 0 deletions

View File

@ -69,6 +69,10 @@ class named_subexpressions_base
{ {
public: public:
virtual int get_id(const charT* i, const charT* j) = 0; virtual int get_id(const charT* i, const charT* j) = 0;
#ifdef __GNUC__
// warning supression:
virtual ~named_subexpressions_base(){}
#endif
}; };
template <class charT> template <class charT>

View File

@ -339,6 +339,21 @@ inline const charT* get_escape_R_string()
#endif #endif
} }
template <>
inline const char* get_escape_R_string<char>()
{
#ifdef BOOST_MSVC
# pragma warning(push)
# pragma warning(disable:4309)
#endif
static const char e2[] = { '(', '?', '>', '\x0D', '\x0A', '?',
'|', '[', '\x0A', '\x0B', '\x0C', '\x85', ']', ')', '\0' };
return e2;
#ifdef BOOST_MSVC
# pragma warning(pop)
#endif
}
} // re_detail } // re_detail
} // boost } // boost