title: C++, Fulfilling typedef with lambda?
body: <p>I have a function such as:</p>
  
  <pre><code>typedef void(*timercallback)(void);
  void timer1_attachInterrupt(timercallback userFunc);
  </code></pre>
  
  <p>I wish to call a member method rather than a C style function, so I have tried the following lambda:</p>
  
  <pre><code>timer1_attachInterrupt([this](void) -&gt; void { _member_method(); });
  </code></pre>
  
  <p>However I get the compiler error: </p>
  
  <blockquote>
    <p>No suitable conversion function from "lambda [] void () -> void" to
    "timercallback" exists</p>
  </blockquote>
  
  <p>As far as I can see, the lambda has void arguments like the typedef, and returns void like the tyepdef. What am I missing?</p>