forked from boostorg/regex
Minor workarounds for SGI and Darwin platforms.
[SVN r24340]
This commit is contained in:
@ -23,11 +23,11 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <wchar.h>
|
||||
#include <stdlib.h>
|
||||
#include <boost/regex.h>
|
||||
|
||||
#ifndef BOOST_NO_WREGEX
|
||||
#include <wchar.h>
|
||||
|
||||
const wchar_t* expression = L"^";
|
||||
const wchar_t* text = L"\n ";
|
||||
|
@ -23,9 +23,9 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <wchar.h>
|
||||
#include <stdlib.h>
|
||||
#include <boost/regex.h>
|
||||
#include <wchar.h>
|
||||
|
||||
#ifndef BOOST_NO_WREGEX
|
||||
|
||||
|
@ -22,8 +22,13 @@
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||
|
||||
#ifdef __sgi
|
||||
template <class T>
|
||||
void test_captures(const std::string& regx, const std::string& text, const T& expected)
|
||||
#else
|
||||
template <class T>
|
||||
void test_captures(const std::string& regx, const std::string& text, T& expected)
|
||||
#endif
|
||||
{
|
||||
boost::regex e(regx);
|
||||
boost::smatch what;
|
||||
|
Reference in New Issue
Block a user