
12 Aug
2011
12 Aug
'11
9:12 a.m.
On 12 August 2011 14:32, Judson Weissert <judson@mfrac.com> 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.