Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-11-01 19:26:10

Alberto Ganesh Barbati wrote:
> Hi,
> [referring to latest CVS version]
> in both class templates boost::iostreams::detail::direct_streambuf and
> boost::iostreams::detail::indirect_streambuf, member function
> is_open()
> is not declared const. However, boost::iostreams::stream<>::is_open()
> is declared const, so it won't compile as it calls one the former on
> a data member. Therefore, either all three members are declared const
> or none
> of them. The all-const approach makes more sense, IMHO.

My recollection is that all the is_open() functions should be const, so I'm
inclined to change [in]direct_streambuf. Could you give me an example of
something that won't currently compile, but should?

> HTH,
> Ganesh

Jonathan Turkanis

Boost list run by bdawes at, gregod at, cpdaniel at, john at