Boost logo

Boost Users :

Subject: Re: [Boost-users] Iostreams: how can I control my (ostream) filter?
From: Sylro (syrmonsieur_at_[hidden])
Date: 2014-11-15 12:53:31


I have the same problem trying to escape XML : I want the filter to be
enabled when writing contents and attribute values, and disabled when
writing the markup.

I tried the same solutions as Akim, but ended up embedding "control
sequences" within the data to enable/disable the filter. From outside it's
not that bad since the control sequences are wrapped into manipulators, but
the implementation is simply horrible.

Is there any suggestion to solve our problem ? How can we control a filter
without having to sync ?
Thanks !

--
View this message in context: http://boost.2283326.n4.nabble.com/Iostreams-how-can-I-control-my-ostream-filter-tp4668716p4669093.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net