Octree bug
octree_node.txx
/**\brief Return a (const) reference to a child node.
*
* @param child An integer in \f$[0,2^{\mathrm{\texttt{\d_}}}]\f$ indicating which child node to
* return.
*/
template <typename T_, int d_, typename A_>
const octree_node<T_, d_, A_>& octree_node<T_, d_, A_>::operator[](int child) const
{
if (!this->m_children)
{
throw std::domain_error("Attempt to access children of an octree leaf node.");
}
return this->_M_chilren[child];
}
_M_children
should be _m_children
. I managed to hit this error when building like this
ExternalProject_Add(VTK
GIT_REPOSITORY ${GIT_REPO}
GIT_TAG master
GIT_SHALLOW TRUE
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS:BOOL=OFF
-DVTK_ENABLE_WRAPPING:BOOL=OFF
-DVTK_ENABLE_LOGGING:BOOL=OFF
-DVTK_WEBASSEMBLY_THREADS:BOOL=ON
-DVTK_ENABLE_WEBGPU:BOOL=ON
-DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2:STRING=DONT_WANT
-DVTK_VERSIONED_INSTALL=OFF
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
-DVTK_SMP_ENABLE_STDTHREAD=ON
-DVTK_MODULE_ENABLE_VTK_libproj:STRING=DONT_WANT
-DVTK_DEBUG_LEAKS:BOOL=${VTK_DEBUG_LEAKS}
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE})
``