Skip to content

Commit

Permalink
More PR comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
adalisk-emikhaylov committed Aug 2, 2024
1 parent ce8bab8 commit 624f0c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MRMesh/MRHeapBytes.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ template<typename T>
return sizeof( T ) + ptr->heapBytes();
}

/// Needed for generic code, always returns just the `sizeof`.
/// Needed for generic code, always returns zero.
template<typename T>
[[nodiscard]] inline size_t heapBytes( const std::function<T> & func )
{
return sizeof( func );
return 0;
}

/// \}
Expand Down

0 comments on commit 624f0c1

Please sign in to comment.