Skip to content

Commit

Permalink
allow as<void>
Browse files Browse the repository at this point in the history
  • Loading branch information
SadiinsoSnowfall authored Nov 22, 2024
1 parent d914f13 commit bc0a211
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/eve/as.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@ namespace eve
constexpr as() noexcept {}
explicit constexpr as(T const&) noexcept {}
};

template<>
struct as<void>
{
using type = void;

constexpr as() noexcept {}
};
}

0 comments on commit bc0a211

Please sign in to comment.