title: binding to member variables
body: <p>The following <a href="http://www.boost.org/doc/libs/1_42_0/doc/html/lambda/le_in_details.html#lambda.members_variables_as_targets" rel="nofollow noreferrer">example from boost bind</a> does not work for me:</p>
  
  <pre><code>#include &lt;boost/bind.hpp&gt;
  
  struct A
  {
      int data;
  };
  
  int main()
  {
      A a;
      boost::bind(&amp;A::data, _1)(a) = 1;
  }
  </code></pre>
  
  <p><code>error: assignment of read-only location 'boost::bind [with A1 = boost::arg&lt;1&gt;, M = int, T = A](&amp;A::data, (&lt;unnamed&gt;::_1, boost::arg&lt;1&gt;())).boost::_bi::bind_t&lt;R, F, L&gt;::operator() [with A1 = A, R = const int&amp;, F = boost::_mfi::dm&lt;int, A&gt;, L = boost::_bi::list1&lt;boost::arg&lt;1&gt; &gt;](((A&amp;)(&amp; a)))'</code></p>
  
  <p>Am I doing anything wrong? The compiler is g++ 4.4.0</p>