mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
AK: Loosen FixedPoint template contraints and forward-declare it
Because AK/Concepts.h includes AK/Forward.h and concepts cannot be forward declared, slightly losen the FixedPoint template arguments so that we can forward declare it in AK/Forward.h
This commit is contained in:
parent
92e337de21
commit
77b3230c80
2 changed files with 6 additions and 1 deletions
|
@ -14,7 +14,8 @@
|
|||
namespace AK {
|
||||
|
||||
// FIXME: this always uses round to nearest break-tie to even
|
||||
template<size_t precision, Integral Underlying = i32>
|
||||
// FIXME: use the Integral concept to constrain Underlying
|
||||
template<size_t precision, typename Underlying>
|
||||
class FixedPoint {
|
||||
using This = FixedPoint<precision, Underlying>;
|
||||
constexpr static Underlying radix_mask = (1 << precision) - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue