Opened 15 years ago

Closed 15 years ago

#1064 closed Bugs (fixed)

problem on platforms with no errno.h header file

Reported by: anonymous Owned by: Daniel James
Milestone: Boost 1.35.0 Component: hash
Version: Boost 1.34.0 Severity: Showstopper
Keywords: Cc:

Description

I can't use some boost libraries on the Microsoft Windows Smarthone Edition platform as it lacks the standard header errno.h. In my case it prevents me from using _any_ hashing as hash_float.hpp includes errno.h. For me, any solution (no-errno implementation for hashing floating point numbers or just inability to hash floating point numbers) is ok, as long as it allows me to hash other types (say strings).

Is it possible to get rid of inclusion of this header for such platforms?

Thanks

Change History (2)

comment:1 by Daniel James, 15 years ago

Milestone: To Be DeterminedBoost 1.35.0
Status: newassigned
Type: Support RequestsBugs
Version: release 1.34.0

Yes, but it's too late for 1.34.1. But I'll fix it as soon as possible. The errno check is actually pointless on Windows platforms so you can safely remove it. On other platforms, it's a little paranoid but it might be required when hashing infinity.

The version in CVS HEAD doesn't use errno because it uses fpclassify or _fpclass to check for infinity first. Although I'm not sure when that's going to be released.

comment:2 by Daniel James, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [38877]) Remove the errno check when hashing floating point numbers. It's not really needed and was causing problems on the Microsoft Windows Smarthone Edition platform. Fixes #1064.

Note: See TracTickets for help on using tickets.