
27 Jan
2010
27 Jan
'10
4:35 p.m.
I'm actually glad we agree here :) I assume your implementation of numeric_min and numeric_max can take two arguments of differing types, and only does the promotion / demotion on the return? Unless you're planning to submit in the immediate future, could you post the implementation in this thread (assuming it's of reasonable length) so I can take a look? Zach On Wed, Jan 27, 2010 at 2:28 AM, Neil Groves <neil@grovescomputing.com>wrote:
In my experience of using arithmetic type promotion and demotion it is often desirable to allow customisation of the promotion policy through a template parameter while providing a default policy that always preserves accuracy.