From 4dbf30d14e82164283585e84476377742ddff662 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 26 Sep 2000 15:49:21 +0000 Subject: [PATCH] add streaming of syntax_element_type to suppress warnings [SVN r7847] --- src/regex_debug.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/regex_debug.cpp b/src/regex_debug.cpp index 5d898398..b6022e6f 100644 --- a/src/regex_debug.cpp +++ b/src/regex_debug.cpp @@ -23,6 +23,8 @@ #include #include +#include +#include #ifdef BOOST_MSVC #include @@ -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(x); +} +}} // namespace boost::re_detail + + namespace { char b1[32] = {0,};