Opened 14 years ago

Closed 14 years ago

#1944 closed Bugs (fixed)

Interval library pow function doesn't work with mpq_class and similar

Reported by: Ben Galehouse <bgalehouse@…> Owned by: Guillaume Melquiond
Milestone: Boost 1.36.0 Component: numeric
Version: Boost 1.35.0 Severity: Problem
Keywords: Cc:

Description

The boost interval library pow function does not compile when an expression class system is used to avoid temporaries. e.g. It fails if you use, say, the mpq_class datatype from the gmp library. The fix is adding a single static_cast<T>.

Attachments (2)

test.cpp (374 bytes ) - added by Ben Galehouse <bgalehouse@…> 14 years ago.
interval_pow.patch (658 bytes ) - added by Ben Galehouse <bgalehouse@…> 14 years ago.

Download all attachments as: .zip

Change History (5)

by Ben Galehouse <bgalehouse@…>, 14 years ago

Attachment: test.cpp added

by Ben Galehouse <bgalehouse@…>, 14 years ago

Attachment: interval_pow.patch added

comment:1 by Douglas Gregor, 14 years ago

Owner: changed from Douglas Gregor to No-Maintainer

comment:2 by John Maddock, 14 years ago

Owner: changed from No-Maintainer to Guillaume Melquiond

comment:3 by Guillaume Melquiond, 14 years ago

Resolution: fixed
Status: newclosed

Thanks for the report. Now fixed in revision 47986.

Note: See TracTickets for help on using tickets.