mirror of
https://github.com/boostorg/hof.git
synced 2026-01-25 18:22:18 +00:00
More friendly example for msvc
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
/// }
|
||||
/// };
|
||||
///
|
||||
/// constexpr auto increment_by_5 = fit::repeat(std::integral_constant<int, 5>())(increment());
|
||||
/// auto increment_by_5 = fit::repeat(std::integral_constant<int, 5>())(increment());
|
||||
/// assert(increment_by_5(1) == 6);
|
||||
///
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
/// typedef std::integral_constant<int, 1> one;
|
||||
/// typedef std::integral_constant<int, 6> six;
|
||||
///
|
||||
/// constexpr auto increment_until_6 = fit::repeat_while(not_6())(increment());
|
||||
/// auto increment_until_6 = fit::repeat_while(not_6())(increment());
|
||||
/// static_assert(std::is_same<six, decltype(increment_until_6(one()))>::value, "Error");
|
||||
///
|
||||
|
||||
|
||||
Reference in New Issue
Block a user