Boost logo

Boost Users :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2003-09-08 05:28:21


Hi!

Before I start the tedious task of a reconfigure:
Anyone with experience on how to handle that compiler?
I need the -AA option, so the compiler gets really picky
about _everything_:

Warning (anachronism) 823:
"/opt/FREE-SOFTWARE/boost-1.30.0/boost/mpl/if.hpp", line 172 # Redundant
preprocessing concatenation operation results in two valid preprocessing
tokens. Depending on this implementation defined behavior will result in
non-portable code.
    BOOST_MPL_AUX_VOID_SPEC(3, if_)

Any help appreciated.

aCC has some problems with e.g. this code snippet, which passed intel's 7.1:
What's wrong here?

  typedef typename
  boost::mpl::apply_if_c<
             SAME_TYPE(T, Simpler1),
             
             boost::mpl::identity<pair<T, Overloader<0> > >,
             
             boost::mpl::apply_if_c<
                        (SAME_TYPE(Simpler1, Simpler2)
                         ||
                         SAME_TYPE(Simpler1, SimplerN)),
             
                        boost::mpl::identity<pair<Simpler1, Overloader<1> >
>,
                        
                        boost::mpl::apply_if_c<
                                   SAME_TYPE(Simpler2, SimplerN),
                                    
                                   boost::mpl::identity<pair<Simpler2,
Overloader<2> > >,
                                    
                                   boost::mpl::identity<pair<SimplerN,
Overloader<3> > >
>
>
> ::type Decision;

Error 24: "../daixtrose/src/daixtrose/Simplify.h", line 164 # ':' expected
instead of '::'.
> ::type Decision;
                   ^^
Error 585: "../daixtrose/src/daixtrose/Simplify.h", line 164 # Expected an
operator
before 'Decision'.
> ::type Decision;
                          ^^^^^^^^
Error 172: "../daixtrose/src/daixtrose/Simplify.h", line 164 # Undeclared
variable 'type'.
> ::type Decision;
                     ^^^^
Error 19: "../daixtrose/src/daixtrose/Simplify.h", line 167 # Unexpected
'Decision'. COMPILE_TIME_ASSERT
      ^^^^^^^^^^^^^^^^^^^

-- 
Build your own Expression Template Library with Daixtrose!
Visit http://daixtrose.sourceforge.net/ 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net