Boost logo

Boost Users :

From: Imre Palik (imre_at_[hidden])
Date: 2007-02-27 05:16:05


Hi,

I try to use boost::lambda in the following function:

string
build_headers(shared_ptr<connection> conn, vector<wstring> headers)
{
  if (headers.empty()) return "";
  return accumulate(++headers.begin(), headers.end(),
                    string(1, '\'') + conn->quote(headers[0]) + '\'',
                    (_1 + ", '" + bind(&connection::quote, var(conn), _2)
                     + '\''));
}

and wisual studio gives me the following error message

error C2664: 'boost::lambda::bind' : cannot convert parameter 1 from
'overloaded-function' to 'SOCKET'
1> Context does not allow for disambiguation of overloaded function

Could anybody help me decypher this message? What is this 'SOCKET' and
how does it come into the picture?

Thanks

ImRe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net