Opened 8 years ago
Closed 8 years ago
#10190 closed Patches (fixed)
declval missing in GCC 4.4
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | To Be Determined | Component: | fusion |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
Many Fusion tests as well as all Boost.MSM tests fail on QNX 6.5.0 in C++0x mode because Fusion uses the function std::declval() that GCC 4.4 doesn't provide.
Also some numeric/odeint tests such as fusion_algebra and some spirit/repository tests such as qi_repo_subrule fail due to this.
Sample error:
../boost/fusion/container/map/map_iterator.hpp:40: error: 'declval' is not a member of 'std'
The attached patch replaces all uses of std::declval() with boost::declval().
All Fusion tests pass with the patch except those that already failed for other reasons (std_tuple_iterator, std_tuple and as_map). All MSM tests also pass except those that have always failed for other reasons.
Attachments (1)
Change History (5)
by , 8 years ago
Attachment: | fusion_declval.patch added |
---|
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Sure, but I don't have a GitHub account and it will take me a while to set one up.
comment:3 by , 8 years ago
The patch seems good. I open a PR on behalf of Niklas.
ttps://github.com/boostorg/fusion/pull/30
comment:4 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Could you post a pull request here? https://github.com/boostorg/fusion