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
|
|
@ -22,7 +22,7 @@ int popcnt(TYPE x)
|
|||
template <int N, int K, int T, int POLY>
|
||||
void bch_test(int message, int target)
|
||||
{
|
||||
CODE::ShortBCHCodeEncoder<N, K> encode(POLY);
|
||||
CODE::ShortBCHCodeEncoder<N, K, POLY> encode;
|
||||
int hist[N+1] = { 0 };
|
||||
for (int j = 0; j < (1 << K); ++j)
|
||||
for (int i = j + 1; i < (1 << K); ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue