From 50610bf111462021fcb1912977511e1b4d02823c Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 16 Feb 2001 12:47:30 +0000 Subject: [PATCH] regex: added explicit #error clause to reduce error messages when wide character support is not available. [SVN r9227] --- demo/regress/wregex_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demo/regress/wregex_test.cpp b/demo/regress/wregex_test.cpp index 365c7b40..bee8a293 100644 --- a/demo/regress/wregex_test.cpp +++ b/demo/regress/wregex_test.cpp @@ -28,6 +28,10 @@ #include +#ifdef BOOST_RE_NO_WCSTRING +#error The regex library is not configured for wide character support +#endif + // // instantiate templates used: // @@ -194,3 +198,4 @@ template test_string_type regex_merge(const test_string_type&, #include "libs/regex/src/wide_posix_api.cpp" +