Compare commits

...

3 Commits

Author SHA1 Message Date
a606f1d874 Phoenix Reloaded
[SVN r53348]
2009-05-28 17:15:17 +00:00
944a01f39e GCC warning suppression fixes.
Fixes #3071.

[SVN r53274]
2009-05-26 08:31:23 +00:00
d279b2c0a1 Qualify lower_bound with std:: to allow regex to work with Sun CC
[SVN r53088]
2009-05-18 15:42:04 +00:00
2 changed files with 20 additions and 1 deletions

View File

@ -69,6 +69,10 @@ class named_subexpressions_base
{
public:
virtual int get_id(const charT* i, const charT* j) = 0;
#ifdef __GNUC__
// warning supression:
virtual ~named_subexpressions_base(){}
#endif
};
template <class charT>
@ -104,7 +108,7 @@ public:
int get_id(const charT* i, const charT* j)
{
name t(i, j, 0);
typename std::vector<name>::const_iterator pos = lower_bound(m_sub_names.begin(), m_sub_names.end(), t);
typename std::vector<name>::const_iterator pos = std::lower_bound(m_sub_names.begin(), m_sub_names.end(), t);
if((pos != m_sub_names.end()) && (*pos == t))
{
return pos->index;

View File

@ -339,6 +339,21 @@ inline const charT* get_escape_R_string()
#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
} // boost