Skip to content

infinity() blocks use of fast math options #397

Description

@Objexx

The use of std::numeric_limits<T>::infinity() in parse_number.h is incompatible with "fast math" options.

Perhaps if __FAST_MATH__ is defined std::numeric_limits<T>::max() or, if negative, std::numeric_limits<T>::lowest() would suffice for the returned value? Or maybe some other mechanism that elides/replaces parse_infnan?

I think this is messy and non-ideal but some code that wants fast float will also want fast math ;-). This is more of a feature request than a bug report.

Thanks for the great library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions