Boost logo

Boost :

From: Chris Weed (chrisweed_at_[hidden])
Date: 2005-08-25 10:46:09


On 8/25/05, Peder Holt <peder.holt_at_[hidden]> wrote:
> On 8/25/05, Chris Weed <chrisweed_at_[hidden]> wrote:
> > Hi,
> > I can't get this to compile.
> >
> > #include "boost/metamath/double.hpp"
> > #include "boost/metamath/double_macros.hpp"
> > #include "boost/mpl/apply.hpp"
> > #include "boost/metamath/double/divides.hpp"
> >
> > int main()
> > {
> > typedef BOOST_DOUBLE(3.3f) xt;
> > typedef BOOST_DOUBLE(2.2f) yt;
> > typedef boost::metamath::detail::divides_double_double<xt,yt>::type zt;
> > zt z;
> > return 0;
> > };
> >
> >
> > The header file seems to have a macro problem.
> >
> > Here is the error message in g++ 3.4.2 in Linux:
> >
>
> <snip>
>
> Hi, Chris. I don't have access to GCC at the moment, but I have made
> an updated version based on the error message you posted. (I replaced
> all ## tokens with BOOST_PP_CAT)
> Hopefully this solves the problem.
>
> Regards,
> Peder
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>

That works.
Thanks,
Chris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk