Gavin Doughtie on 23 Aug 2003 14:29:03 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [ALACPP] boost::bind and global functions?


Hmph, I could have sworn we had passed boost::functions into callback APIs before.

Jon Stewart wrote:

Rather than worrying about what type ProcessRowFunc is, try this:

template<class _FnT>
bool MyQueryResultWrapper::nextRow(_FnT func)
{
  // blah blah
  func(aFetchRow);

  return true;
}

It'll work with a function pointer and with the properly parameterized boost::function.



Jon

_______________________________________________
alacpp mailing list
alacpp@xxxxxxxxxxx
http://lists.ellipsis.cx/mailman/listinfo/alacpp