Opened 10 years ago
Closed 10 years ago
#7635 closed Bugs (fixed)
Karma real generators output "inf" when attribute is integral 0
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | To Be Determined | Component: | spirit |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Karma real generators output "inf"
instead of the expected "0.0"
when the supplied attribute is an integral 0
. This is because the implementation of is_infinite
compares the attribute to std::numeric_limits<T>::infinity()
without checking std::numeric_limits<T>::has_infinity
.
Attachments (2)
Change History (3)
by , 10 years ago
Attachment: | karma_real_0.cpp added |
---|
comment:1 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
minimal reproducible test