#2454 closed Patches (wontfix)
Fusion - MSVC level 1 warnings
Reported by: | Paul A. Bristow | Owned by: | Joel de Guzman |
---|---|---|---|
Milestone: | To Be Determined | Component: | fusion |
Version: | Boost 1.40.0 | Severity: | Cosmetic |
Keywords: | fusion warnings | Cc: |
Description
I am seeing a far number of what MS regard as level 1 (most severe) warnings from various fusion files, for example:
i:\trunk\boost/fusion/iterator/next.hpp(60) : warning C4180: qualifier applied to function type has no meaning; ignored i:\trunk\boost/fusion/sequence/intrinsic/begin.hpp(64) : warning C4180: qualifier applied to function type has no meaning; ignored i:\trunk\boost/fusion/sequence/intrinsic/begin.hpp(71) : warning C4180: qualifier applied to function type has no meaning; ignored i:\trunk\boost/fusion/sequence/intrinsic/end.hpp(64) : warning C4180: qualifier applied to function type has no meaning; ignored i:\trunk\boost/fusion/sequence/intrinsic/end.hpp(71) : warning C4180: qualifier applied to function type has no meaning; ignored i:\trunk\boost/fusion/iterator/prior.hpp(60) : warning C4180: qualifier applied to function type has no meaning; ignored
I doubt if it is worth changing/correcting the code, but users will be justifiably alarmed, especially if, as in my case, I am not explicitly using Fusion!
However I am unclear how best to suppress these warnings, short of a lot of push'n'pop pragmas into a lot of files. Is this not a problem on gcc?
Change History (4)
comment:1 by , 13 years ago
Milestone: | Boost 1.37.0 → Boost 1.42.0 |
---|---|
Version: | Boost 1.36.0 → Boost 1.40.0 |
comment:3 by , 12 years ago
Milestone: | Boost 1.42.0 → To Be Determined |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
I can no longer remember the code that provoked this. I will re-raise this if it happens again.
Is it true that the const qualifier is really wrong, or just has no effect?
Resolved as wontfix?
comment:4 by , 12 years ago
I believe that this warning only occurs when the return type is a const qualified built-in. Since all fusion iterators have class type, I'm not sure how this could happen.
These still appear in 1.40 and are rather tiresome.
Commenting out the const below supresses these warnings, but I can see it will be tedious to try to find them all, but IMO worth it.
Tell me if I can do anything to help.