mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
Everywhere: Redundant inline specifier on constexpr functions (#3807)
Problem: - `constexpr` functions are decorated with the `inline` specifier keyword. This is redundant because `constexpr` functions are implicitly `inline`. - [dcl.constexpr], §7.1.5/2 in the C++11 standard): "constexpr functions and constexpr constructors are implicitly inline (7.1.2)". Solution: - Remove the redundant `inline` keyword.
This commit is contained in:
parent
a40abd6ce3
commit
d1fe6a0b53
13 changed files with 43 additions and 43 deletions
|
@ -104,7 +104,7 @@ struct TypeBoundsChecker<Destination, Source, true, true, false> {
|
|||
};
|
||||
|
||||
template<typename Destination, typename Source>
|
||||
inline constexpr bool is_within_range(Source value)
|
||||
constexpr bool is_within_range(Source value)
|
||||
{
|
||||
return TypeBoundsChecker<Destination, Source>::is_within_range(value);
|
||||
}
|
||||
|
@ -289,7 +289,7 @@ constexpr Checked<T> operator*(const Checked<T>& a, const Checked<T>& b)
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
constexpr inline Checked<T> operator/(const Checked<T>& a, const Checked<T>& b)
|
||||
constexpr Checked<T> operator/(const Checked<T>& a, const Checked<T>& b)
|
||||
{
|
||||
Checked<T> c { a };
|
||||
c.div(b.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue