added support for boost test runtime environment

[SVN r9996]
This commit is contained in:
John Maddock
2001-04-30 11:30:46 +00:00
parent 20c5f86692
commit 4b95679ab5
4 changed files with 8 additions and 4 deletions

View File

@ -27,6 +27,7 @@
#include <boost/timer.hpp>
#include <boost/type_traits.hpp>
#include <boost/test/cpp_main.cpp>
using std::cout;
using std::endl;
@ -149,7 +150,7 @@ const char* cc_array = cc_array_;
const int iter_count = 1000000;
int main()
int cpp_main(int argc, char* argv[])
{
boost::timer t;
double result;

View File

@ -28,6 +28,7 @@
#include <boost/timer.hpp>
#include <boost/type_traits.hpp>
#include <boost/call_traits.hpp>
#include <boost/test/cpp_main.cpp>
#if defined(BOOST_NO_STDC_NAMESPACE) || (defined(std) && defined(__SGI_STL_PORT))
namespace std{ using :: memset; }
@ -116,7 +117,7 @@ const char* cc_array = cc_array_;
const int iter_count = 1000000;
int main()
int cpp_main(int argc, char* argv[])
{
boost::timer t;
double result;

View File

@ -29,6 +29,7 @@
#include <memory>
#include <boost/type_traits.hpp>
#include <boost/test/cpp_main.cpp>
using std::cout;
using std::endl;
@ -89,7 +90,7 @@ inline void iter_swap(I1 one, I2 two)
}; // namespace opt
int main()
int cpp_main(int argc, char* argv[])
{
//
// testing iter_swap

View File

@ -24,6 +24,7 @@
#include <boost/timer.hpp>
#include <boost/type_traits.hpp>
#include <boost/test/cpp_main.cpp>
using std::cout;
using std::endl;
@ -103,7 +104,7 @@ const char cc_array[array_size] = { 0,};
const int iter_count = 1000000;
int main()
int cpp_main(int argc, char* argv[])
{
boost::timer t;
double result;