2
0
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:
Paul
2015-04-24 21:19:52 -05:00
parent be971a6414
commit 9f50dd3308
3 changed files with 42 additions and 11 deletions

View File

@@ -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 );
}