Modified wide character tests to warn not fail when no wide character support is available in the platform.

Modified Jamfiles to use centralised options.
Added wide character concept check.


[SVN r19318]
This commit is contained in:
John Maddock
2003-07-26 11:22:17 +00:00
parent 9d565f63ed
commit 6750cf4892
14 changed files with 304 additions and 36 deletions

View File

@ -25,6 +25,8 @@
#include <boost/regex.hpp>
#include "regress.h"
#ifndef BOOST_REGEX_NO_TEST
#ifndef BOOST_RE_ALGO_INCLUDED
#include <algorithm>
#endif
@ -337,6 +339,4 @@ void expand_escapes(string_type& s)
}
}
#endif

View File

@ -43,6 +43,8 @@ using std::endl;
#include "regress.h"
#ifndef BOOST_REGEX_NO_TEST
#if defined(BOOST_MSVC) && defined(_DEBUG)
#include <CRTDBG.H>
#endif
@ -284,5 +286,18 @@ void jm_debug_alloc::deallocate(void* pv, size_type n)
delete[] p;
}
#else
#include <iostream>
int cpp_main(int argc, char * argv[])
{
std::cout <<
"\n<note>\n"
"This platform does not provide the needed wide character support for this test.\n"
"</note>\n";
return 0;
}
#endif

View File

@ -27,6 +27,12 @@
#include <boost/regex/config.hpp>
#if defined(BOOST_NO_WREGEX) && defined(TEST_UNICODE)
# define BOOST_REGEX_NO_TEST
#endif
#ifndef BOOST_REGEX_NO_TEST
#ifdef BOOST_RE_OLD_IOSTREAM
#include <iostream.h>
#else
@ -436,6 +442,8 @@ typedef boost::basic_regex<char_t, boost::c_regex_traits<char_t>, jm_debug_alloc
#endif
#endif

View File

@ -26,6 +26,8 @@
#include <boost/regex.hpp>
#include "regress.h"
#ifndef BOOST_REGEX_NO_TEST
# ifdef BOOST_MSVC
# pragma warning(disable: 4244 4267)
#endif
@ -884,7 +886,7 @@ void reset_error()
}
#endif