
2 Sep
2004
2 Sep
'04
2:05 a.m.
I had to add this to get some tests for the TMP book to pass: namespace boost { namespace lambda { template<int N> struct plain_return_type_2<arithmetic_action<plus_action>, char[N], std::string> { typedef std::string type; }; }} // namespace boost::lambda Obviously this could be generalized for basic_string and for the reversed arguments. I assume it's not in the library because it forces you to #include <string>? Maybe there should be a special lambda header for each std:: type that needs deduction help? -- Dave Abrahams Boost Consulting http://www.boost-consulting.com