
David Abrahams wrote:
The following message is a courtesy copy of an article that has been posted to gmane.comp.lib.boost.devel as well.
"Neal D. Becker" <ndbecker2@verizon.net> writes:
I believe some parts of pqs may be just what I need for some other purposes. I'm really interested in binary_operation. Code to infer return type of arithmetic operations is useful for other purposes, particularly since it appears to include std::complex.
As I've pointed out in the past, Joel de Guzman has posted what I believe to be the definitive implementation of this return type deduction facility. Lost my connection at the moment, but it should be findable through the usual boost archives. Look for a thread titled "limited form of type deduction" and http://tinyurl.com/ofqf. In the sandbox, see boost/utility/type_deduction.hpp.
http://tinyurl.com/ofqf is a dead link. Here are some fresh links: http://tinyurl.com/yrotd http://tinyurl.com/2v7g6 Cheers, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net