2
0
mirror of https://github.com/boostorg/regex.git synced 2026-02-15 01:12:23 +00:00

add streaming of syntax_element_type to suppress warnings

[SVN r7847]
This commit is contained in:
Dave Abrahams
2000-09-26 15:49:21 +00:00
parent 116efaa69a
commit 4dbf30d14e

View File

@@ -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,};