Opened 9 years ago

Last modified 9 years ago

#8529 new Bugs

boost/spirit/home/karma/stream/stream.hpp comments about special overload incomplete

Reported by: cppljevans Owned by: Hartmut Kaiser
Milestone: To Be Determined Component: spirit
Version: Boost 1.52.0 Severity: Cosmetic
Keywords: karma stream comments Cc:

Description

The comments here:

this is a special overload to detect if the output iterator has been generated by a format_manip object. template <

typename T, typename Traits, typename Properties, typename Context

, typename Delimiter, typename Attribute

static bool generate(

karma::detail::output_iterator<

karma::ostream_iterator<T, Char, Traits>, Properties

& sink, Context& context, Delimiter const& d

, Attribute const& attr)

{

around line 153 should also indicate that this function is called, at least sometimes, when just a stream operator is used. For example, when the attached is run, the above method is also called despite there being no format_manip object used.

Attachments (1)

stream_generator.cpp (3.3 KB ) - added by cppljevans 9 years ago.
causes call of generate function whose comments don't mention that possibility

Download all attachments as: .zip

Change History (2)

by cppljevans, 9 years ago

Attachment: stream_generator.cpp added

causes call of generate function whose comments don't mention that possibility

comment:1 by Joel de Guzman, 9 years ago

Owner: changed from Joel de Guzman to Hartmut Kaiser
Note: See TracTickets for help on using tickets.