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