
2 Nov
2005
2 Nov
'05
12:26 a.m.
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 www.kangaroologic.com