Opened 13 years ago
Closed 13 years ago
#4061 closed Bugs (fixed)
[MPL] gcc-4.5 compilation problems related to arity_helper
Reported by: | Owned by: | Aleksey Gurtovoy | |
---|---|---|---|
Milestone: | Boost 1.43.0 | Component: | mpl |
Version: | Boost 1.42.0 | Severity: | Problem |
Keywords: | Cc: |
Description
arity_helper isn't fully qualified which triggers ADL and may instantiate templates we don't want. Please see the following (invalid) gcc bugreport that contains a test case.
Attachments (1)
Change History (3)
by , 13 years ago
Attachment: | gcc-4.5-mpl-1.42.0.patch added |
---|
comment:1 by , 13 years ago
the real fix would be to patch mpl/aux_/template_arity.hpp and regenerate the preprocessed files. I'm not sure how to do that. Aleksey?
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [61467]) MPL: fixed #4061: gcc-4.5 compilation problems related to arity_helper, applied attached patch to the main aux_/template_arity.hpp and regenerated the corresponding file preprocessed/gcc/template_arity.hpp. No other preprocessed files are affected.
This patch seemed to be fine as all it does is to qualify an internal name in order to avoid it being looked up through ADL. This appears to be reasonably safe as this name is internal and not supposed to be found using ADL in the first place.
Proposed fix