In C++, I need to make streams of objects which are of non-POD type using my own implementation of std::basic_streambuf<Type>. Is the standard library required to construct/destroy the objects when expected?

有帮助吗?

解决方案

It is possible, but you might need to implement some missing iostream, char_traits, members/friend functions. Some basic functionality like ostream::write might work out of the box.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top