
27 Jun
2012
27 Jun
'12
10:33 p.m.
Do we need an eval_set() that is callable from the "detail" layer?
Nope, there's already an operator= for all the backends, but the argument must be a type listed in one of the backends typelists, so the fix is:
// Find the type as wide as U that T is assignable from: typedef typename boost::multiprecision::detail::canonical<U, T>::type int_type;
// This will store the result. if(U(p % U(2)) != U(0)) { result = t; } else result = int_type(1);
John.
Thanks yet again. I got your update from the sandbox and tested it. The tests in my checkout of the trunk (without specfun) are OK with VS2010. It's amazing how quickly and reliably you work! Best regards, Chris.