This commit makes ozz::io::Stream's destructor public.
The use case is having a function that returns a generic std::unique_ptr<ozz::io::Stream> which will be automatically destructed when the consumer is done with it without having to make assumption on the stream type.
If the constructor is protected/private, also std::unique_ptr cannot access it and the program fails to build.
This commit makes
ozz::io::Stream
's destructor public.The use case is having a function that returns a generic
std::unique_ptr<ozz::io::Stream>
which will be automatically destructed when the consumer is done with it without having to make assumption on the stream type.If the constructor is
protected
/private
, alsostd::unique_ptr
cannot access it and the program fails to build.