Before C++17, `alignas` on dynamically allocated objects was often silently ignored by `operator new` for types requiring alignment greater than `std::max_align_t` (typically 8 or 16 bytes), creating a subtle bug where requested alignment was not guaranteed on the heap. C++17 introduced `operator new` overloads that accept `std::align_val_t`, ensuring `alignas` is respected for heap allocations.