@@ -565,7 +565,8 @@ void test_multi_index::idx256_general(uint64_t receiver, uint64_t code, uint64_t
565
565
indexed_by< N (bysecondary), const_mem_fun<record, const key256&, &record::get_secondary> >
566
566
> table ( receiver, receiver );
567
567
568
- auto fourtytwo = key256::make_from_word_sequence<uint64_t >(0ULL , 0ULL , 0ULL , 42ULL );
568
+ // auto fourtytwo = key256::make_from_word_sequence<uint64_t>(0ULL, 0ULL, 0ULL, 42ULL);
569
+ auto fourtytwo = key256{std::array<uint32_t , 8 >{{0 ,0 , 0 ,0 , 0 ,0 , 0 ,42 }}};
569
570
// auto onetwothreefour = key256::make_from_word_sequence<uint64_t>(1ULL, 2ULL, 3ULL, 4ULL);
570
571
auto onetwothreefour = key256{std::array<uint32_t , 8 >{{0 ,1 , 0 ,2 , 0 ,3 , 0 ,4 }}};
571
572
@@ -604,11 +605,13 @@ void test_multi_index::idx256_general(uint64_t receiver, uint64_t code, uint64_t
604
605
605
606
auto secidx = table.get_index <N (bysecondary)>();
606
607
607
- auto lower1 = secidx.lower_bound (key256::make_from_word_sequence<uint64_t >(0ULL , 0ULL , 0ULL , 40ULL ));
608
+ // auto lower1 = secidx.lower_bound(key256::make_from_word_sequence<uint64_t>(0ULL, 0ULL, 0ULL, 40ULL));
609
+ auto lower1 = secidx.lower_bound (key256{std::array<uint32_t , 8 >{{0 ,0 , 0 ,0 , 0 ,0 , 0 ,40 }}});
608
610
print (" First entry with a secondary key of at least 40 has ID=" , lower1->id , " .\n " );
609
611
eosio_assert ( lower1->id == 1 , " idx256_general - lower_bound" );
610
612
611
- auto lower2 = secidx.lower_bound (key256::make_from_word_sequence<uint64_t >(0ULL , 0ULL , 0ULL , 50ULL ));
613
+ // auto lower2 = secidx.lower_bound(key256::make_from_word_sequence<uint64_t>(0ULL, 0ULL, 0ULL, 50ULL));
614
+ auto lower2 = secidx.lower_bound (key256{std::array<uint32_t , 8 >{{0 ,0 , 0 ,0 , 0 ,0 , 0 ,50 }}});
612
615
print (" First entry with a secondary key of at least 50 has ID=" , lower2->id , " .\n " );
613
616
eosio_assert ( lower2->id == 2 , " idx256_general - lower_bound" );
614
617
0 commit comments