mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
removed value_type interface on BCH to make room
This commit is contained in:
parent
6099dc9849
commit
e2b160385e
4 changed files with 4 additions and 16 deletions
|
|
@ -28,7 +28,7 @@ int main()
|
|||
auto noise = std::bind(distribution, generator);
|
||||
for (int i = 0; i < 3; ++i)
|
||||
code[noise()] ^= 1;
|
||||
decode(code);
|
||||
decode(reinterpret_cast<GF::ValueType *>(code));
|
||||
for (int i = 0; i < 15; ++i)
|
||||
assert(code[i] == target[i]);
|
||||
}
|
||||
|
|
@ -51,7 +51,7 @@ int main()
|
|||
auto noise = std::bind(distribution, generator);
|
||||
for (int i = 0; i < 12; ++i)
|
||||
code[noise()] ^= 1;
|
||||
(*decode)(code);
|
||||
(*decode)(reinterpret_cast<GF::ValueType *>(code));
|
||||
for (int i = 0; i < 65535; ++i)
|
||||
assert(code[i] == target[i]);
|
||||
delete[] target;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue