mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
remove warning abound unused captured this pointer in lambda
This commit is contained in:
parent
cacd9948f4
commit
e345b3f97f
@ -63,11 +63,11 @@ namespace ngcore {
|
|||||||
return typeid(T) == ti ? nT
|
return typeid(T) == ti ? nT
|
||||||
: Archive::Caster<T, Bases>::tryUpcast(ti, nT);
|
: Archive::Caster<T, Bases>::tryUpcast(ti, nT);
|
||||||
};
|
};
|
||||||
info.upcaster = [/*this*/](const std::type_info& ti, void* p) -> void*
|
info.upcaster = [](const std::type_info& ti, void* p) -> void*
|
||||||
{ return typeid(T) == ti ? p : Archive::Caster<T, Bases>::tryUpcast(ti, static_cast<T*>(p)); };
|
{ return typeid(T) == ti ? p : Archive::Caster<T, Bases>::tryUpcast(ti, static_cast<T*>(p)); };
|
||||||
info.downcaster = [/*this*/](const std::type_info& ti, void* p) -> void*
|
info.downcaster = [](const std::type_info& ti, void* p) -> void*
|
||||||
{ return typeid(T) == ti ? p : Archive::Caster<T, Bases>::tryDowncast(ti, p); };
|
{ return typeid(T) == ti ? p : Archive::Caster<T, Bases>::tryDowncast(ti, p); };
|
||||||
info.cargs_archiver = [this](Archive &ar, void* p) {
|
info.cargs_archiver = [](Archive &ar, void* p) {
|
||||||
if constexpr(detail::has_GetCArgs_v<T>)
|
if constexpr(detail::has_GetCArgs_v<T>)
|
||||||
ar << static_cast<T*>(p)->GetCArgs();
|
ar << static_cast<T*>(p)->GetCArgs();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user