forked from boostorg/function
function_template.hpp:
- function partial specialization now allows assignment to zero (for clearing) and comparison against zero (for the empty check) (Brad King) function_test.cpp: - Check comparison against zero - Check assignment to zero function_test_fail1.cpp: function_test_fail2.cpp: - Make them fail for the right reasons [SVN r15803]
This commit is contained in:
@ -25,7 +25,7 @@ static int bad_fn(float f) { return static_cast<int>(f); }
|
||||
int
|
||||
test_main(int, char*[])
|
||||
{
|
||||
function<int> f1;
|
||||
function0<int> f1;
|
||||
f1 = bad_fn;
|
||||
|
||||
BOOST_CRITICAL_ERROR("This should not have compiled.");
|
||||
|
Reference in New Issue
Block a user