Fix compile issue for ICC

Template parameters to local types is only allowed in C++11, instead move the
local type out to an anonymous namespace.
This commit is contained in:
jcowles 2015-05-29 16:19:07 -07:00
parent a48cab654e
commit 98dbe6b6d6

View File

@ -31,6 +31,15 @@
//------------------------------------------------------------------------------
namespace {
template <class Face, class Edge, class Vertex>
struct LevelMapT {
std::vector<Face *> faces;
std::vector<Edge *> edges;
std::vector<Vertex *> verts;
};
};
// Copies vertex data from hmesh into hbrVertexData reordered to match
// the given refiner and subdivision level. This is used for later easy
@ -48,13 +57,7 @@ GetReorderedHbrVertexData(
typedef OpenSubdiv::HbrHalfedge<T> Hhalfedge;
struct Mapper {
struct LevelMap {
std::vector<Hface *> faces;
std::vector<Hhalfedge *> edges;
std::vector<Hvertex *> verts;
};
typedef LevelMapT<Hface, Hhalfedge, Hvertex> LevelMap;
std::vector<LevelMap> maps;
Mapper(const OpenSubdiv::Far::TopologyRefiner &refiner,