> Why won't this work: > > struct Pi_impl > { > operator float() const > { return 3.14...; } > > operator double() const > { return 3.14.................; }; > > operator long double() const > { return 3.14..............................;} > }; > > namespace boost > { > const Pi_impl pi; > } > > ?
Template function overload resolution is one: std::abs(pi); // oops error another is that it is not extensible: how for example should I add constants for boost::interval? Or some other as yet unthought of (or user defined) type? John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost