mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-03 08:40:33 +05:00
if constexpr
This commit is contained in:
parent
1ff8c97b1d
commit
6b346926ec
@ -501,11 +501,12 @@ namespace ngcore
|
||||
template <typename T>
|
||||
Archive& operator & (std::shared_ptr<T>& ptr)
|
||||
{
|
||||
if (has_shared_from_this2<T>::value && shallow_to_python)
|
||||
{
|
||||
Shallow (ptr);
|
||||
return *this;
|
||||
}
|
||||
if constexpr(has_shared_from_this2<T>::value)
|
||||
if (shallow_to_python)
|
||||
{
|
||||
Shallow (ptr);
|
||||
return *this;
|
||||
}
|
||||
|
||||
if(Output())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user