Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#2867 closed Feature Requests (fixed)

Adding a get_expected_args member to format

Reported by: Joel Falcou <joel.falcou@…> Owned by: Samuel Krempp
Milestone: Boost 1.39.0 Component: format
Version: Boost 1.38.0 Severity: Cosmetic
Keywords: Cc:

Description

Some use-case of format will be handled in a easier fashion if the expected number fo arguments of a given format was available via a method.

The attached patch proposed Ryan Gallagher and I is an eventual implementation for this feature request.

Attachments (2)

format.patch (3.7 KB ) - added by Joel Falcou <joel.falcou@…> 14 years ago.
Eventual implementation patch
format.2.patch (3.6 KB ) - added by Joel Falcou <joel.falcou@…> 13 years ago.
Method renaming

Download all attachments as: .zip

Change History (4)

by Joel Falcou <joel.falcou@…>, 14 years ago

Attachment: format.patch added

Eventual implementation patch

by Joel Falcou <joel.falcou@…>, 13 years ago

Attachment: format.2.patch added

Method renaming

comment:1 by Samuel Krempp, 13 years ago

Resolution: fixed
Status: newclosed

I checked the suggested member functions and implemented them plus one (suggested patch was not handling bound args correctly, format::bind_arg is quite different from operator% ) in revision 57734

comment:2 by Samuel Krempp, 13 years ago

Actually, revision r57734 for the headers, r57735 for the added tests.

Note: See TracTickets for help on using tickets.