mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-25 09:11:18 +00:00
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:
parent
a48cab654e
commit
98dbe6b6d6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user