guillaumeblanc / ozz-animation

Open source c++ skeletal animation library and toolset
http://guillaumeblanc.github.io/ozz-animation/
Other
2.46k stars 302 forks source link

Make Stream's destructor public. #183

Open PieroV opened 1 month ago

PieroV commented 1 month ago

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.