Hi,
I created a template helper to print the contents of a vector:
template<typename T> static inline void PrintVector(std::string name, T& vec) { std::cout << "****************************" << std::endl; std::cout << name << ": { "; int count = c7x::element_count_of<T>::value; for (int i = 0; i < count; i++) { std::cout << vec.s[i]; if (i < (count -1)) // Don't print comma for last element { std::cout << ", "; } } std::cout << " }" << std::endl; }
It works fine until I use a const vector. Seems that those aren't instantiated in c7x_scalable.h. Is this something that could be fixed in the API?
Thanks,
Fred