
Joel de Guzman wrote:
Max Motovilov wrote:
"Brian McNamara" <lorgon@cc.gatech.edu> wrote in message news:20040225235607.GA1327@gaia3.cc.gatech.edu...
See, e.g. http://www.boost.org/libs/lambda/doc/ar01s06.html operator-tag representations as well as the logic that "when combining float and double, promote both to double" already exist somewhere in Boost (ask Joel or Jaakko, I dunno the details), so reuse those.
Looks exactly like what I was proposing, even the syntax is similar. I knew it had to be there somewhere :)
If you want a newer technology, there's one in the boost-sandbox. See: boost/utility/type_deduction.hpp and a test program: libs/utility/type_deduction_tests.cpp.
[snip] Here it is, for your perusal: http://tinyurl.com/yre5d and the test driver code: http://tinyurl.com/yqh2e This will be the basis of the LL/Phoenix merger that's being developed right now. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net