Commit d645802
authored
fix: make static_assert template-dependent in ByteSwap (#464)
The static_assert(false, ...) in the ByteSwap function template was
unconditionally evaluated at template definition time, which could cause
compilation failures even when the else branch is never instantiated.1 parent cf0fd37 commit d645802
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments