mirror of
https://github.com/boostorg/regex.git
synced 2025-07-20 15:52:09 +02:00
@ -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>
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user