mirror of
https://github.com/boostorg/lambda.git
synced 2026-01-21 04:52:25 +00:00
removed some tests if sstreams not available
[SVN r13731]
This commit is contained in:
@@ -12,8 +12,9 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#ifndef BOOST_NO_STRINGSTREAM
|
||||
#include <sstream>
|
||||
#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<int>::type cr(constant_ref(i));
|
||||
(++vi, var(a) = cr)();
|
||||
BOOST_TEST(i == 101);
|
||||
#endif
|
||||
}
|
||||
|
||||
void arithmetic_operators() {
|
||||
|
||||
Reference in New Issue
Block a user