Opened 12 years ago

Last modified 12 years ago

#4951 new Feature Requests

Boost.Tuple: implement set_open(const char *)

Reported by: Vladimir Rutsky <altsysrq@…> Owned by: Joel de Guzman
Milestone: To Be Determined Component: tuple
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc: Vladimir Rutsky <altsysrq@…>

Description

Current implementation of Boost.Tuple IO manipulators allows define only single character for start of tuple, delimiter of items and for end of tuple.

  1. Sometimes it is convenient to have no character before and after tuple data.
  2. Sometimes it is convenient to wrap tuple in more that single character.

For example output tuple as HTML table row: with open string "<tr><td>", delimiter "</td><td>" and end string "</td></tr>", so (1 2 3) will be outputted as correct HTML table row "<tr><td>1</td><td>2</td><td>3</td></tr>".

Change History (1)

comment:1 by Steven Watanabe, 12 years ago

Component: Nonetuple
Owner: set to Joel de Guzman
Note: See TracTickets for help on using tickets.