diff --git a/auto.hh b/auto.hh index 8a4c996..c06deb2 100644 --- a/auto.hh +++ b/auto.hh @@ -11,22 +11,21 @@ template class PInterface, template class ...States> -class BaseAuto { -protected: - using base_auto_t = BaseAuto; - using raw_tlist = TTList; - using Interface = PInterface; +class Auto { + using self_t = Auto; + using intf_t = PInterface; + using ttlist = TTList; template class State> - struct auto_t_mapper { - using type = State; + struct Automaker { + using type = State; }; - using unsafe_tlist = decltype(raw_tlist::template Tmap()); + using tlist = decltype(ttlist::template Tmap()); struct StateData { - alignas(unsafe_tlist::template reduce()()) - uint8_t state_data_[unsafe_tlist::template reduce()()]; + alignas(tlist::template reduce()()) + uint8_t state_data_[tlist::template reduce()()]; template T* get_data() { @@ -37,14 +36,14 @@ protected: template