Minor workarounds for SGI and Darwin platforms.

[SVN r24340]
This commit is contained in:
John Maddock
2004-08-08 09:48:10 +00:00
parent 97d3cdad83
commit 2e968dea9c
3 changed files with 7 additions and 2 deletions

View File

@ -23,11 +23,11 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <wchar.h>
#include <stdlib.h> #include <stdlib.h>
#include <boost/regex.h> #include <boost/regex.h>
#ifndef BOOST_NO_WREGEX #ifndef BOOST_NO_WREGEX
#include <wchar.h>
const wchar_t* expression = L"^"; const wchar_t* expression = L"^";
const wchar_t* text = L"\n "; const wchar_t* text = L"\n ";

View File

@ -23,9 +23,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <wchar.h>
#include <stdlib.h> #include <stdlib.h>
#include <boost/regex.h> #include <boost/regex.h>
#include <wchar.h>
#ifndef BOOST_NO_WREGEX #ifndef BOOST_NO_WREGEX

View File

@ -22,8 +22,13 @@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) #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> template <class T>
void test_captures(const std::string& regx, const std::string& text, T& expected) void test_captures(const std::string& regx, const std::string& text, T& expected)
#endif
{ {
boost::regex e(regx); boost::regex e(regx);
boost::smatch what; boost::smatch what;