#ifndef WRAP_SSTREAM_HPP
#define WRAP_SSTREAM_HPP

#include "eng-malloc.hpp"
#include "wrap-string.hpp"
#include <sstream>
#include <string_view>

namespace eng {
template<class C, class T=std::char_traits<C>>
class basic_ostringstream : public std::basic_ostringstream<C, T, eng::allocator<C>>, public eng::opnew {
    using underlying = std::basic_ostringstream<C, T, eng::allocator<C>>;
    using underlying::basic_ostringstream;
};
using ostringstream = basic_ostringstream<char>;
} // namespace eng

#endif // WRAP_SSTREAM_HPP
