Opened 10 years ago

Last modified 9 years ago

#7573 new Feature Requests

Missing operator++, --, %

Reported by: nathan.crookston@… Owned by: Matthias Schabel
Milestone: To Be Determined Component: units
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc: pipping@…

Description

As reported on the boost-users list <https://groups.google.com/forum/?fromgroups=#!msg/boost-list/-8COkmhO_0w/10IGPCxOe4AJ>,

It would be nice if quantity<incrementable type> could increment that type -- same for decrement and modulus.

The attached patch seems to work in my local copy -- it would be nice to get rolled into a future release, however.

Attachments (1)

operators.diff (1.3 KB ) - added by nathan.crookston@… 10 years ago.
Add operator++, --, % to quantity

Download all attachments as: .zip

Change History (2)

by nathan.crookston@…, 10 years ago

Attachment: operators.diff added

Add operator++, --, % to quantity

comment:1 by pipping@…, 9 years ago

Cc: pipping@… added
Note: See TracTickets for help on using tickets.