Skip to content

Commit 6b9a6c2

Browse files
committed
Use non-const Grid in const version of type trait
Signed-off-by: Dan Bailey <[email protected]>
1 parent 5862e8d commit 6b9a6c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openvdb/openvdb/Grid.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ struct TreeAdapter
10631063
using TreePtrType = typename TreeType::Ptr;
10641064
using ConstTreePtrType = typename TreeType::ConstPtr;
10651065
using NonConstTreePtrType = typename NonConstTreeType::Ptr;
1066-
using GridType = Grid<TreeType>;
1066+
using GridType = Grid<NonConstTreeType>;
10671067
using NonConstGridType = Grid<NonConstTreeType>;
10681068
using GridPtrType = typename GridType::Ptr;
10691069
using NonConstGridPtrType = typename NonConstGridType::Ptr;
@@ -1151,7 +1151,7 @@ struct TreeAdapter<tree::ValueAccessor<_TreeType> >
11511151
using TreePtrType = typename TreeType::Ptr;
11521152
using ConstTreePtrType = typename TreeType::ConstPtr;
11531153
using NonConstTreePtrType = typename NonConstTreeType::Ptr;
1154-
using GridType = Grid<TreeType>;
1154+
using GridType = Grid<NonConstTreeType>;
11551155
using NonConstGridType = Grid<NonConstTreeType>;
11561156
using GridPtrType = typename GridType::Ptr;
11571157
using NonConstGridPtrType = typename NonConstGridType::Ptr;

0 commit comments

Comments
 (0)