11 Jul
2017
11 Jul
'17
11:17 a.m.
On 07/11/2017 03:09 AM, Rishabh Arora via Boost wrote:
Thank you, Gavin Lambert. I don't think any of the preprocessor directives will work then? because type cannot be determined at comile time? Is there any other way to do that?
What about replacing the switch with an index into a vector
of function pointers? Something like:
#include <iostream>
template < class T >
void print_column(std::size_t col) {
T dummy;
std::cout <