diff options
author | Lenny Maiorani <lenny@colorado.edu> | 2021-04-18 11:06:36 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-18 22:09:25 +0200 |
commit | d462a561630f9768d4c346a73689e30c43f3a992 (patch) | |
tree | 5bc04617ec1952f7903105b506b06ba55e91bb34 /Userland/Libraries/LibGfx/BitmapFont.h | |
parent | 0ac02b9084c0fa02ffa64397dd22a6155db13ba6 (diff) | |
download | serenity-d462a561630f9768d4c346a73689e30c43f3a992.zip |
AK/Hex: Decode hex digit in constexpr context
Problem:
- Hex digit decoding is not `constexpr`, but can be.
Solution:
- Move the body of the function to the header and decorate with
`constexpr`.
- Provide tests for run-time and compile-time evaluation.
Diffstat (limited to 'Userland/Libraries/LibGfx/BitmapFont.h')
0 files changed, 0 insertions, 0 deletions