[Boost-bugs] [Boost C++ Libraries] #1317: has_xxx randomly broken in msvc

Subject: [Boost-bugs] [Boost C++ Libraries] #1317: has_xxx randomly broken in msvc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-10-12 15:56:28


#1317: has_xxx randomly broken in msvc
---------------------------------------------------+------------------------
 Reporter: Shunsuke Sogame <pstade.mb_at_[hidden]> | Owner: agurtovoy
     Type: Bugs | Status: new
Milestone: Boost 1.35.0 | Component: mpl
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 {{{
     #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.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1317>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC