mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 22:35:44 +00:00
moved constructor generator argument to template parameter
This commit is contained in:
parent
538950ca88
commit
b54be1c997
6 changed files with 22 additions and 22 deletions
|
|
@ -14,8 +14,8 @@ Copyright 2020 Ahmet Inan <inan@aicodix.de>
|
|||
template <int N, int K, int T, int POLY>
|
||||
void bch_test(int trials)
|
||||
{
|
||||
CODE::ShortBCHCodeEncoder<N, K> encode(POLY);
|
||||
CODE::ShortBCHCodeDecoder<N, K, T> decode(POLY);
|
||||
CODE::ShortBCHCodeEncoder<N, K, POLY> encode;
|
||||
CODE::ShortBCHCodeDecoder<N, K, POLY, T> decode;
|
||||
std::random_device rd;
|
||||
typedef std::default_random_engine generator;
|
||||
typedef std::uniform_int_distribution<int> distribution;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue