Commit 8c2e15ae authored by Victor Zverovich's avatar Victor Zverovich

Make printf work in search (#164)

parent de71db6d
......@@ -192,8 +192,16 @@ class printf_width_handler: public function<unsigned> {
return 0;
}
};
template <typename Char, typename Context>
void printf(basic_buffer<Char> &buf, basic_string_view<Char> format,
basic_format_args<Context> args) {
Context(std::back_inserter(buf), format, args).format();
}
} // namespace internal
using internal::printf; // For printing into memory_buffer.
template <typename Range>
class printf_arg_formatter;
......@@ -566,12 +574,6 @@ void basic_printf_context<OutputIt, Char, AF>::format() {
buffer.append(pointer_from(start), pointer_from(it));
}
template <typename Char, typename Context>
void printf(internal::basic_buffer<Char> &buf, basic_string_view<Char> format,
basic_format_args<Context> args) {
Context(std::back_inserter(buf), format, args).format();
}
template <typename Buffer>
struct basic_printf_context_t {
typedef basic_printf_context<
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment