Opened 10 years ago

#7637 new Patches

Karma allow integrals as type for real_generator

Reported by: K-ballo <kaballo86@…> Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.52.0 Severity: Not Applicable
Keywords: Cc:

Description

The attached patch allows Karma real_generator to be instantiated with fundamental integral types, which will otherwise result in an error when calling modf due to its pointer argument. The remaining requirements (fmod, floor, et.al.) are satisfied by implicit conversion, though they could be specially handled as well.

Attachments (2)

karma_real_policies_int.patch (1.8 KB ) - added by K-ballo <kaballo86@…> 10 years ago.
patch
karma_real_generator_int_test.cpp (470 bytes ) - added by K-ballo <kaballo86@…> 10 years ago.
Minimal test

Download all attachments as: .zip

Change History (2)

by K-ballo <kaballo86@…>, 10 years ago

patch

by K-ballo <kaballo86@…>, 10 years ago

Minimal test

Note: See TracTickets for help on using tickets.