use callbacks for applying accel

This commit is contained in:
a1xd 2021-04-01 23:28:41 -04:00
parent 2bfe95fb4e
commit d8140fb31b
7 changed files with 113 additions and 66 deletions

View file

@ -85,4 +85,11 @@ namespace rawaccel {
template <typename... Ts>
constexpr void operator()(Ts&&...) const noexcept {}
};
template <typename T> struct remove_ref { using type = T; };
template <typename T> struct remove_ref<T&> { using type = T; };
template <typename T> struct remove_ref<T&&> { using type = T; };
template <typename T>
using remove_ref_t = typename remove_ref<T>::type;
}