Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-12-10 12:48:30


"Joaquín Mª López Muñoz" <joaquin_at_[hidden]> wrote in message
news:41B953D2.D66C4731_at_tid.es...
Hi Jonathan, some quick observations:

* Some of your includes still refer to <boost/io/...> instead of
<boost/iostreams/...> (most notably, the examples). Am I missing
something?

* In boost/iostreams/detail/buffer.hpp, you can take advantage
of boost/detail/allocator_utilities.hpp to do your allocator rebinding
for both compliant and defective compilers. So, instead of

#ifndef BOOST_NO_MEMBER_TEMPLATE
    typedef typename Alloc::template rebind<Ch>::other allocator_type;
#else
    typedef mpl::if_<
                is_same<typename Alloc::value_type, Ch>,
                Alloc,
                std::allocator<Ch>
>::type allocator_type;
#endif

you can write:

#include <boost/detail/allocator_utilities.hpp>

...

  typedef typename
    boost::detail::allocator::rebind_to<Alloc,Ch>::type allocator_type;

(BTW, it is not BOOST_NO_MEMBER_TEMPLATE but
BOOST_NO_MEMBER_TEMPLATES.)

* Seems to me that with some moderate effort the library could
be made to work more or less with MSVC++ 6.0. If you want me
to try to help a little wrt to this, please tell me so and I'll send you more
questions/stuff via private email.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

Jonathan Turkanis ha escrito:

> Hi All,
>
> A version of the Iostreams library designed to work with release 1.32 is now
> available:
>
> http://home.comcast.net/~jturkanis/iostreams/
>
> This version does not incorporate all the changes decided on during the
review,
> but most of the name changes have been applied. In particular,
>
> - The library is now contained entirely in the iostreams subdirectories of
> <boost> and <libs>.
> - Resources are now called Devices
> - The i/o mode Inout has been renamed Bidirectional
> - The concept Buffered has been renamed Multi-Character
> - Filters are now located in the directory boost/iostreams/filter
> - Devices are now located in the directory boost/iostreams/device
>
> The library has been tested on VC7.1, Intel 7.1-8.0 for Windows, Codewarrior
8.3
> and GCC 3.2 (mingw). Unfortunately, I have noticed some regressions of GCC
> 3.3-4, but am working to correct them.
>
> I am confident that the library will eventually work on GCC 3.3+ and Borland
> 5.6.4. In addition, I may be able to provide limited support for VC6-7.0.
>
> I'm hoping to get a version into CVS soon.
>
> Also, several of the fixes that people sent me during the review have been
> removed because they caused regressions. They have not been forgotten -- they
> will be incorporated in to the final version in modified form.
>
> --
> Jonathan Turkanis
> technews_at_[hidden]
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


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