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,11 +501,12 @@ namespace ngcore
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
Archive& operator & (std::shared_ptr<T>& ptr)
|
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;
|
Shallow (ptr);
|
||||||
}
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
if(Output())
|
if(Output())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user