문제

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