I see your point. Does anyone have a nice idea of how to detect when the template argument is an iterator? It's easy with pairs and arrays and the default case is containers.
Perhaps you can use Boost's concept check to see if the template argument models the Input Iterator concept? That's the first thing that came to mind, I haven't tried it out or anything.
Regards,
Dirk Gerrits
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost