<br><br><div class="gmail_quote">On Thu, May 17, 2012 at 2:38 AM, Marius Tibeica <span dir="ltr">&lt;<a href="mailto:mtibeica@gmail.com" target="_blank">mtibeica@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have tried multiple approaches. <div>The difficulty comes from the fact that each class can have multiple sync/async functions. For example, Enquire has atleast get_mset, get_matching_terms and get_eset.<div>Another problem is that from the pool methods (which should be templatized) I have to call methods from the class (GetMset_process, GetMset_convert, GetMatchingTerm_process, ...). This means that I also probably have to pass a function as a template parameter.</div>

<div>The thirt problem is that func##_pool and func##_done need to be (int (eio_req *req)), so I can not pass a function pointer.</div><div><br></div><div>At the moment I am trying a hybrid approach (bot templates and macroes).  <br>
</div></div></blockquote><div><br>OK, no need to bend over backwards. Simplicity is preferable after all. <br></div></div><br>