mirror of
https://github.com/boostorg/hof.git
synced 2026-01-23 17:42:40 +00:00
Change args to take an integral constant, and make it return a function. Deprecate the old usage
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
#include <fit/args.h>
|
||||
#include <type_traits>
|
||||
#include "test.h"
|
||||
|
||||
// FIT_TEST_CASE()
|
||||
// {
|
||||
// FIT_STATIC_TEST_CHECK(fit::args<3>(1,2,3,4,5) == 3);
|
||||
// FIT_TEST_CHECK( fit::args<3>(1,2,3,4,5) == 3 );
|
||||
// }
|
||||
|
||||
FIT_TEST_CASE()
|
||||
{
|
||||
FIT_STATIC_TEST_CHECK(fit::args<3>(1,2,3,4,5) == 3);
|
||||
FIT_TEST_CHECK( fit::args<3>(1,2,3,4,5) == 3 );
|
||||
FIT_STATIC_TEST_CHECK(fit::args(std::integral_constant<int, 3>())(1,2,3,4,5) == 3);
|
||||
FIT_TEST_CHECK( fit::args(std::integral_constant<int, 3>())(1,2,3,4,5) == 3 );
|
||||
}
|
||||
Reference in New Issue
Block a user