> From: Thorsten Ottosen [mailto:[EMAIL PROTECTED]] > > Hi Boosters, > > I was wondering if it would be possible to implement a wrapper around > built-in types to provide automatic detection of conversion > problems:
[snip] What would the advantage be over using boost::numeric_cast directly, and thus explicitly? Using these wrappers, it wouldn't be obvious that there are numeric_casts involved (implying possible failure [and therefore try/catch blocks for bad_numeric_cast]). As I see it, automatic detection of conversion problems wouldn't buy much unless it could also remedy the problem. Doing it "manually", and acknowledging the potential problem by using numeric_cast is (in addition to ensuring correct behavior) self-documenting, a property that I think is rather important. Bjorn _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost