Opened 12 years ago
Closed 12 years ago
#5275 closed Patches (fixed)
result_of clash in interprocess tests
Reported by: | Chris Jefferson | Owned by: | Joel de Guzman |
---|---|---|---|
Milestone: | To Be Determined | Component: | fusion |
Version: | Boost 1.45.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Lots of interprocess tests have:
using namespace boost; using namespace std;
and then use result_of. This causes clashes for libraries (such as libc++) which are starting to add support for std::result_of.
I can see two obvious fixes:
1) Remove the 'using namespace std;'. They don't actually seem to be doing anything.
2) Qualify result_of with boost::
I assume (1) is the obvious fix. Except I wondered if the 'using namespace std' in most tests was there for some reason?
Attachments (2)
Change History (7)
by , 12 years ago
Attachment: | fusion-std.patch added |
---|
comment:1 by , 12 years ago
Component: | None → interprocess |
---|---|
Owner: | set to |
comment:2 by , 12 years ago
Added a new patch, that fixes the existing issues, and one new one, by adding a boost::fusion:: to a couple of result_of calls, in a test.
comment:3 by , 12 years ago
Component: | interprocess → fusion |
---|---|
Owner: | changed from | to
using namespace std was removed from interprocess but those patches are for boost::fusion so I guess we need to change the bug owner.
comment:4 by , 12 years ago
Owner: | changed from | to
---|
comment:5 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
patch applied. I'll commit as soon as all the tests pass. i'm closing this one.
Removes 'using namespace std' from conflicting tests. Adds 'std::' to count and endl in the one test which did not have them.