Boost logo

Boost :

Subject: Re: [boost] [iostreams] basic_buffer int usage
From: Daniel James (dnljms_at_[hidden])
Date: 2011-08-12 11:12:26


On 12 August 2011 14:32, Judson Weissert <judson_at_[hidden]> wrote:
>
> I am not completely sure what overload resolution is taking place, I only see a default constructor and a constructor that takes a buffer size. What am I missing?

A lot of the classes have macros like this:

    BOOST_IOSTREAMS_FORWARD( code_converter, open_impl, Device,
                             BOOST_IOSTREAMS_CONVERTER_PARAMS,
                             BOOST_IOSTREAMS_CONVERTER_ARGS )

These generate constructors with different numbers of arguments which
are forwarded to the implementation object. The problem is that since
they're template based they're often a better match for arguments than
the constructor you actually want to use.


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