Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-08-17 15:01:06


Jonathan Turkanis wrote:
> George M. Garner Jr. wrote:
>> Johnathan,
>>
>> Would you mind changing the access of two sections in class
>> indirect_streambuf from private to protected? I want to specialize
>> two functions in this class and as it currently stands I need to
>> replace practically the entire iostreams library to do it.
>>
>> Regards,
>>
>> George.
>>
>> template<typename T, typename Tr, typename Alloc, typename Mode>
>> class indirect_streambuf
>>> public linked_streambuf<BOOST_DEDUCED_TYPENAME
>>> char_type_of<T>::type, Tr>
>> {
>> public:
>> typedef typename char_type_of<T>::type char_type;
>> BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(Tr)
>> --private:
>> ++protected:
>> typedef typename category_of<T>::type category;
>> [...]
>> void* component_impl() { return component(); }
>> --private:
>> ++protected:
>> //----------Accessor
>> functions--------------------------------------------// wrapper&
>> obj() { return *storage_; }
>
> These are implementation details, so I'm reluctant to expose them.
> What are you trying to do?

Also, component_impl() is virtual, so you should be able to override it even
though its private.

> Jonathan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk