Opened 11 years ago

#5721 new Patches

Modulo operation for boost::rational

Reported by: mlang@… Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: rational
Version: Boost Development Trunk Severity: Optimization
Keywords: Cc:

Description

boost::rational currently omits to define modulo on rational numbers. The attached patches adds operator%= to boost::rational and therefore allows it to use ordered_euclidian_ring_operators.

Attachments (1)

rational_mod.patch (3.5 KB ) - added by mlang@… 11 years ago.
The proposed patch

Download all attachments as: .zip

Change History (1)

by mlang@…, 11 years ago

Attachment: rational_mod.patch added

The proposed patch

Note: See TracTickets for help on using tickets.