From 116efaa69a48c47a7e0c38cdebfa2a132582a7c3 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 26 Sep 2000 15:47:45 +0000 Subject: [PATCH] add streaming for syntax_element_type to suppress warnings [SVN r7846] --- include/boost/regex.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/regex.hpp b/include/boost/regex.hpp index 4baa930b..efc42fce 100644 --- a/include/boost/regex.hpp +++ b/include/boost/regex.hpp @@ -30,6 +30,10 @@ #include +#ifdef BOOST_RE_DEBUG +# include +#endif + #ifdef __cplusplus // what follows is all C++ don't include in C builds!! @@ -193,6 +197,11 @@ enum syntax_element_type syntax_element_restart_continue = syntax_element_soft_buffer_end + 1 }; +#ifdef BOOST_RE_DEBUG +// dwa 09/26/00 - This is needed to suppress warnings about an ambiguous conversion +ostream& operator<<(ostream&, syntax_element_type); +#endif + union offset_type { re_syntax_base* p;