Skip to content

Commit

Permalink
bring back necessary friend declaration for heapsize
Browse files Browse the repository at this point in the history
  • Loading branch information
bfraboni committed Aug 29, 2024
1 parent baa3cef commit 32ef3e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/include/OpenImageIO/imageio.h
Original file line number Diff line number Diff line change
Expand Up @@ -1895,6 +1895,9 @@ class OIIO_API ImageInput {
std::unique_ptr<Impl, decltype(&impl_deleter)> m_impl;

void append_error(string_view message) const; // add to error message

/// declare friend heapsize and footprint definitions
template <typename T> friend size_t pvt::heapsize(const T&);
};


Expand Down Expand Up @@ -2809,6 +2812,9 @@ class OIIO_API ImageOutput {
std::unique_ptr<Impl, decltype(&impl_deleter)> m_impl;

void append_error(string_view message) const; // add to m_errmessage

/// declare friend heapsize and footprint definitions
template <typename T> friend size_t pvt::heapsize(const T&);
};


Expand Down

0 comments on commit 32ef3e7

Please sign in to comment.