File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
xpu_api/algorithms/alg.sorting/alg.binary.search Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ auto pred = [](auto&& val) { return val == 5; };
76
76
auto binary_pred = [](auto && val1, auto && val2) { return val1 == val2; };
77
77
auto binary_pred_const = [](const auto & val1, const auto & val2) { return val1 == val2; };
78
78
79
- auto pred1 = [](auto && val) -> decltype ( auto ) { return val > 0 ; };
80
- auto pred2 = [](auto && val) -> decltype ( auto ) { return val == 4 ; };
81
- auto pred3 = [](auto && val) -> decltype ( auto ) { return val < 0 ; };
79
+ auto pred1 = [](auto && val) -> bool { return val > 0 ; };
80
+ auto pred2 = [](auto && val) -> bool { return val == 4 ; };
81
+ auto pred3 = [](auto && val) -> bool { return val < 0 ; };
82
82
83
83
struct P2
84
84
{
Original file line number Diff line number Diff line change 19
19
20
20
#include " support/utils.h"
21
21
22
- // A comparison, equalivalent to std::greater<int> without the
22
+ // A comparison, equivalent to std::greater<int> without the
23
23
// dependency on <functional>.
24
24
struct gt
25
25
{
Original file line number Diff line number Diff line change 21
21
22
22
#include " support/utils.h"
23
23
24
- // A comparison, equalivalent to std::greater<int> without the
24
+ // A comparison, equivalent to std::greater<int> without the
25
25
// dependency on <functional>.
26
26
struct gt
27
27
{
You can’t perform that action at this time.
0 commit comments