|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-09-01 21:05:27
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk