Hi Tim,<br><br>When wrapping the array classes, I see the following warnings:<br><br>vtkSparseArray.txx: In member function ‘const T& vtkSparseArray<T>::GetValue(vtkIdType) [with T = bool]’:<br>vtkSparseArray.txx:101: warning: returning reference to temporary<br>


vtkSparseArray.txx: In member function ‘const T& vtkSparseArray<T>::GetValue(vtkIdType, vtkIdType) [with T = bool]’:<br>vtkSparseArray.txx:125: warning: returning reference to temporary<br>vtkSparseArray.txx: In member function ‘const T& vtkSparseArray<T>::GetValue(vtkIdType, vtkIdType, vtkIdType) [with T = bool]’:<br>


vtkSparseArray.txx:152: warning: returning reference to temporary<br>vtkSparseArray.txx: In member function ‘const T& vtkSparseArray<T>::GetValueN(vtkTypeUInt64) [with T = bool]’:<br>vtkSparseArray.txx:186: warning: returning reference to temporary<br>


<br>These only occur for the "bool" specialization.  It took a bit of<br>searching to find out why they occur, but the reason is the following:<br><br>The std::vector<bool> class is actually a bit array.  When you<br>


index it with [ ], it creates and returns a bool value, since it cannot<br>return a const reference to a bit, but then GetValue() stores that<br>bool value as a temporary, and subsequently returns a reference to it.<br><br>


Can you take a look?<br><br>Thanks,<br><br> - David<br>