
28 Oct
2007
28 Oct
'07
2:31 p.m.
John,
I'll look into this later tonight.
Thanks Harmut: if you need a simple user-defined number type to experiment with then try boost::math::concepts::real_concept in boost/math/concepts/real_concept.hpp.
Ok, I tried that and fixed the pow() issue first (it's in SVN now). After this change the code compiled, but as you pointed out the actual parsing fails. The reason is that std::numeric_limits<boost::math::concepts::real_concept>::max() always returns zero, which triggers the overflow detection in the spirit real_parser, making the overall parse fail. I didn't investigate the numeric_limits::max issue, though. Do you have any ideas? Regards Hartmut