Opened 15 years ago
Closed 14 years ago
#1317 closed Bugs (fixed)
has_xxx randomly broken in msvc
| Reported by: | Owned by: | Aleksey Gurtovoy | |
|---|---|---|---|
| Milestone: | Boost 1.36.0 | Component: | mpl |
| Version: | Boost Development Trunk | Severity: | Problem |
| Keywords: | Cc: |
Description
#include <boost/mpl/has_xxx.hpp>
namespace my1 {
BOOST_MPL_HAS_XXX_TRAIT_DEF(ppp)
}
#include <boost/mpl/apply.hpp> // does something bad for msvc.
#include <boost/static_assert.hpp>
namespace my2 {
BOOST_MPL_HAS_XXX_TRAIT_DEF(ppp)
}
struct foo
{
typedef int ppp;
};
BOOST_STATIC_ASSERT( my1::has_ppp< foo >::value ); // pass
BOOST_STATIC_ASSERT( my2::has_ppp< foo >::value ); // failed
int main() {}
The second assertion fails in msvc7.1 and 8.0.
Attachments (1)
Change History (4)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
| Status: | new → assigned |
|---|
Fixed in the trunk (changeset:49260), to be integrated in the release branch.
comment:3 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Merged to the release branch (changeset:49273)
Note:
See TracTickets
for help on using tickets.

I hit the same problem.
This patch appears to resolve the issue for 1.36.0
I think this is an important problem, is there a central location for such patches?
Patch found at: http://lists.boost.org/Archives/boost/2008/06/138366.php