[boost] [iostreams] Pipelined reference_wrappers of filters/device
hi all,
BOOST_IOSTREAMS_PIPABLE generate something like :
template<..., typename component>
pipeline<...> operator|(your_filter const& , component const&);
It is proper for plan use, e.g. filter1 | filter2 | ... | device.
But for boost::reference_wrapper, ref(filter1) | ref(filter2)
|...|ref(device), after type conversion, will be : filter1 | ref(filter2)
|...|ref(device), which may confuse the user.
So, will it be a good idea to make another reloaded
operator|(reference_wrapper
\
operator|(const filter BOOST_IOSTREAMS_TEMPLATE_ARGS(arity, T)& f, const
Component& c) \
{ \
typedef \
::boost::iostreams::detail::pipeline_segment< \
filter BOOST_IOSTREAMS_TEMPLATE_ARGS(arity, T) \
> segment; \
return ::boost::iostreams::pipeline
\
operator|(const boost::reference_wrapper
participants (1)
-
feverzsj