forked from boostorg/tuple
fixed some warningns about unused variables, added Jamfile
[SVN r14854]
This commit is contained in:
20
test/Jamfile
Normal file
20
test/Jamfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
subproject libs/tuple/test ;
|
||||||
|
|
||||||
|
unit-test tuple_test_bench
|
||||||
|
: tuple_test_bench.cpp
|
||||||
|
<lib>../../test/build/test_exec_monitor
|
||||||
|
: <include>$(BOOST_ROOT)
|
||||||
|
;
|
||||||
|
|
||||||
|
unit-test io_test
|
||||||
|
: io_test.cpp
|
||||||
|
<lib>../../test/build/test_exec_monitor
|
||||||
|
: <include>$(BOOST_ROOT)
|
||||||
|
;
|
||||||
|
|
||||||
|
unit-test another_tuple_test_bench
|
||||||
|
: another_tuple_test_bench.cpp
|
||||||
|
<lib>../../test/build/test_exec_monitor
|
||||||
|
: <include>$(BOOST_ROOT)
|
||||||
|
;
|
||||||
|
|
@ -94,7 +94,7 @@ void foo4()
|
|||||||
A a;
|
A a;
|
||||||
tuple<int, double&, const A&> t(1, d, a);
|
tuple<int, double&, const A&> t(1, d, a);
|
||||||
const tuple<int, double&, const A> ct = t;
|
const tuple<int, double&, const A> ct = t;
|
||||||
|
(void)ct;
|
||||||
#ifdef E8
|
#ifdef E8
|
||||||
get<0>(ct) = 5; // can't assign to const
|
get<0>(ct) = 5; // can't assign to const
|
||||||
#endif
|
#endif
|
||||||
@ -119,9 +119,10 @@ void foo4()
|
|||||||
|
|
||||||
void foo5() {
|
void foo5() {
|
||||||
tuple<char, BB*, BB, DD> t;
|
tuple<char, BB*, BB, DD> t;
|
||||||
|
(void)t;
|
||||||
tuple<char, char> aaa;
|
tuple<char, char> aaa;
|
||||||
tuple<int, int> bbb(aaa);
|
tuple<int, int> bbb(aaa);
|
||||||
|
(void)bbb;
|
||||||
// tuple<int, AA*, CC, CC> a = t;
|
// tuple<int, AA*, CC, CC> a = t;
|
||||||
// a = t;
|
// a = t;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user