mirror of
https://github.com/boostorg/regex.git
synced 2025-07-01 06:40:57 +02:00
add streaming of syntax_element_type to suppress warnings
[SVN r7847]
This commit is contained in:
@ -23,6 +23,8 @@
|
||||
|
||||
#include <boost/re_detail/regex_config.hpp>
|
||||
#include <boost/re_detail/regex_raw_buffer.hpp>
|
||||
#include <boost/regex.hpp>
|
||||
#include <ostream>
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#include <crtdbg.h>
|
||||
@ -30,6 +32,14 @@
|
||||
|
||||
#ifdef BOOST_RE_DEBUG
|
||||
|
||||
namespace boost { namespace re_detail {
|
||||
ostream& operator<<(ostream& s, syntax_element_type x)
|
||||
{
|
||||
return s << static_cast<unsigned long>(x);
|
||||
}
|
||||
}} // namespace boost::re_detail
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
char b1[32] = {0,};
|
||||
|
Reference in New Issue
Block a user