diff --git a/auto.hh b/auto.hh new file mode 100644 index 0000000..d3d2451 --- /dev/null +++ b/auto.hh @@ -0,0 +1,75 @@ +#pragma once + +#include +#include +#include +#include +#include +#include + +template class ...> class Interface, + template class ...States> +class Auto { + struct StateData { + /* alignas(States...) */ + // uint8_t state_data_[sizeof...(States)]; + uint8_t state_data_[1000]; + + template + T* get_data() { + return /*std::launder(*/static_cast(&state_data_)/*)*/; + } + + template