We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81a526c commit 755444bCopy full SHA for 755444b
util/wear_level.hh
@@ -25,8 +25,8 @@ public:
25
// Scan the block from top to bottom for the first valid data.
26
// Assign the cell_ value such that the next cell we will (try to) write is
27
// the cell after the one containing the first valid data
28
- WearLeveler(auto storage_init)
29
- : storage{storage_init} {
+ WearLeveler(auto &...storage_init)
+ : storage{storage_init...} {
30
data_t data;
31
while (cell_) {
32
if (storage.read(&data, --cell_)) {
0 commit comments