Before `alignas`, developers primarily used compiler-specific directives like GNU's `__attribute__((aligned))` and MSVC's `__declspec(align)` for data alignment, often requiring conditional compilation for cross-platform compatibility.
Open the full topic