mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 18:56:19 +08:00
Use std::launder where appropriate (#181)
This commit is contained in:
@@ -33,7 +33,7 @@ struct TupleParser {
|
||||
const InputVarType& _var) noexcept {
|
||||
const auto parse = [&](const InputArrayType& _arr) -> Result<TupleType> {
|
||||
alignas(TupleType) unsigned char buf[sizeof(TupleType)];
|
||||
auto ptr = reinterpret_cast<TupleType*>(buf);
|
||||
auto ptr = std::launder(reinterpret_cast<TupleType*>(buf));
|
||||
const auto tuple_reader =
|
||||
TupleReader<R, W, TupleType, _ignore_empty_containers, _all_required,
|
||||
ProcessorsType>(&_r, ptr);
|
||||
|
||||
Reference in New Issue
Block a user