Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[src] Use static_assert for KALDI_COMPILE_TIME_ASSERT #4566

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

kkm000
Copy link
Contributor

@kkm000 kkm000 commented Jun 16, 2021

Remove template<bool B> class KaldiCompileTimeAssert because static_assert is now a language declaration. Before C++17 a second argument for the message is required (lame, lame!), which is, lacking anything better, is obtained by stringizing the function-like macro argument. For C++17, the second argument is optional, and the semantics is identical.

@kkm000 kkm000 requested review from danpovey and jtrmal June 16, 2021 06:11
@jtrmal
Copy link
Contributor

jtrmal commented Jun 16, 2021 via email

@kkm000 kkm000 merged commit 1714f6c into kaldi-asr:master Jun 16, 2021
@kkm000 kkm000 deleted the 2106-static-assert branch June 16, 2021 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants