mirror of
https://github.com/boostorg/regex.git
synced 2025-07-29 20:17:24 +02:00
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:
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user