Commit 83c28449 authored by Julius Nehring-Wirxel's avatar Julius Nehring-Wirxel
Browse files

The out-stream is now a template argument

parent f56312d6
#pragma once
#include <iostream>
#include <sstream>
#include <polymesh/Mesh.hh>
......@@ -15,12 +14,12 @@ namespace polymesh
/// - number of primitives
/// - components
/// - aabb
template <class Vec3 = void>
void print_stats(std::ostream& out, Mesh const& m, vertex_attribute<Vec3> const* position = nullptr);
template <class Vec3 = void, class OutStream>
void print_stats(OutStream& out, Mesh const& m, vertex_attribute<Vec3> const* position = nullptr);
// ======== IMPLEMENTATION ========
template <class Vec3>
void print_stats(std::ostream& out, Mesh const& m, vertex_attribute<Vec3> const* position)
template <class Vec3, class OutStream>
void print_stats(OutStream& out, Mesh const& m, vertex_attribute<Vec3> const* position)
{
auto ln = "\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment