From: Cromwell Enage (sponage_at_[hidden])
Date: 2004-09-25 23:45:04
Methinks I found the problem, not in numeric_cast, but
in the numeric ops themselves.
The divides metafunction, for example, inherits from
the apply template nested inside the divides_impl
template. The problem is that the primary
divides_impl template inherits from if_c, which
doesn't have a nested apply template, although its
argument types do. The same type of problem occurs in
all other numeric ops, including the comparison ops.
Changing the primary *_impl template for each numeric
op to something like the following code should
vanquish the problem. (It did for me when I edited
the appropriate files.)
template <typename Tag1, typename Tag2>
template <typename N1, typename N2>
BOOST_MPL_AUX_NESTED_VALUE_WKND(int, Tag1) >
Some preprocessed files may need similar editing so
that other compilers (which I don't have) will also
I may be offline for a while, as I'm about to ride out
yet another hurricane.
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk