forked from etternagame/etterna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace unweildy COMPILE_ASSERT macro with static_assert
When this codebase was originally written, there wasn't a built-in cross-compiler way to add compile-time asserts, so the original authors did something clever by forcing the compile-time instantiation of a undefined template class if a precondition was not met. However, this produces a wall of insane template errors all wrapped within macro expansions that is completely unintelligible if you haven't seen it before. Since C++11 we have static_assert for the same purpose, and can produce nice diagnostic strings as an added bonus :)
- Loading branch information
1 parent
b4cd354
commit 2d57161
Showing
5 changed files
with
5 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters