Variant: Remove redundant inline keyword

Problem:
- `constexpr inline` is redundant because `constexpr` implies `inline`.

Solution:
- Remove redundancy.
This commit is contained in:
Lenny Maiorani 2021-05-20 10:15:59 -06:00 committed by Andreas Kling
parent 3bbae6c18b
commit 98468ae2d2
Notes: sideshowbarker 2024-07-18 17:42:29 +09:00

View file

@ -81,7 +81,7 @@ struct Variant<IndexType, InitialIndex> {
template<typename IndexType, typename... Ts>
struct VisitImpl {
template<typename Visitor, IndexType CurrentIndex = 0>
static constexpr inline decltype(auto) visit(IndexType id, const void* data, Visitor&& visitor) requires(CurrentIndex < sizeof...(Ts))
static constexpr decltype(auto) visit(IndexType id, const void* data, Visitor&& visitor) requires(CurrentIndex < sizeof...(Ts))
{
using T = typename TypeList<Ts...>::template Type<CurrentIndex>;