From 38ffca82c9521713ee709eec00d906c34ecb2d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Tue, 7 May 2002 22:16:41 +0000 Subject: [PATCH] removed some tests if sstreams not available [SVN r13731] --- test/operator_tests_simple.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/operator_tests_simple.cpp b/test/operator_tests_simple.cpp index 1d565bf..630aeed 100644 --- a/test/operator_tests_simple.cpp +++ b/test/operator_tests_simple.cpp @@ -12,8 +12,9 @@ #include - +#ifndef BOOST_NO_STRINGSTREAM #include +#endif using namespace std; using namespace boost; @@ -26,6 +27,7 @@ unary_plus_tester operator+(const unary_plus_tester& a) { return a; } void cout_tests() { +#ifndef BOOST_NO_STRINGSTREAM using std::cout; ostringstream os; int i = 10; @@ -58,6 +60,7 @@ void cout_tests() constant_ref_type::type cr(constant_ref(i)); (++vi, var(a) = cr)(); BOOST_TEST(i == 101); +#endif } void arithmetic_operators() {