I have a small obj loader and it takes two parameters and passes them back to the input variables.. however this is my first time doing this and i\'m not sure how to print s
I think the most elegant solution might be a combination of the two answers already posted, with the addition of templating so you don't have to reimplement the operator for all vector/matrix types (this restricts the function definition to header files, though).
#include
template
std::ostream& operator<<(std::ostream& out, const genType& g)
{
return out << glm::to_string(g);
}