forked from boostorg/function
Don't test new syntax if partial specialization is unavailable
[SVN r14536]
This commit is contained in:
1 parent
a0bd17560f
commit
84bdb40567
2 files changed
+4
No files matched your search
@@ -635,6 +635,7 @@ test_ref()
|
||||
static void
|
||||
test_new_syntax()
|
||||
{
|
||||
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
write_five_obj five;
|
||||
function<void()> v2;
|
||||
|
||||
@@ -654,6 +655,7 @@ test_new_syntax()
|
||||
typedef int Fsum(short lhs, short rhs);
|
||||
function<Fsum> sum(&sum_ints);
|
||||
BOOST_TEST(sum(2, 3) == 5);
|
||||
#endif
|
||||
}
|
||||
|
||||
int test_main(int, char* [])
|
||||
|
||||
Reference in new issue
Block a user