You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to do this, I create a new format_context using the original context's args() and locale() in the format function, but with a temporary append buffer. I then can output just a chunk of the buffer.
With 11.1.0 there was some code cleanup in 1416eda that removed the accessor for args_ which breaks my use case. In order for my code to work I either need:
An accessor to args_ and locale_ (locale() is still available)
A method to replace out_
A constructor to make a new context from a const context& and a new appender
I have a use case where my custom formatter needs to format to a buffer and then remove either the front or the back of the buffer.
Example on 11.0.0 where this works: https://godbolt.org/z/96KeTG9bG
In order to do this, I create a new
format_context
using the original context'sargs()
andlocale()
in theformat
function, but with a temporary append buffer. I then can output just a chunk of the buffer.With 11.1.0 there was some code cleanup in 1416eda that removed the accessor for
args_
which breaks my use case. In order for my code to work I either need:args_
andlocale_
(locale()
is still available)out_
const context&
and a newappender
Sample found on godbolt:
The text was updated successfully, but these errors were encountered: