Am 11.10.2010 01:59, schrieb Ryan McConnehey:
Is what I'm attempting possible?
Ryan
Hi,
yes it is, but you need to pass the template-parameters:
Sorter
template
class Sorter { private: typedef boost::function & a)> t_SortFunction; t_SortFunction m_SortFunction;
public: Sorter(t_SortFunction func) : m_SortFunction(func) {}
bool sort(boost::array
& a) { m_SortFunction(a); } }; template
void quicksort(boost::array & a) { } int main(int argc, char* argv[]) {
Sorter shell(boost::bind(quicksort, _1));
return 0; }
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users