From cd9686b4304132e38643e850de93545376cab9cd Mon Sep 17 00:00:00 2001 From: John Haddon Date: Thu, 13 Oct 2022 10:59:12 +0100 Subject: [PATCH] DataAlgo : Support PathMatcherData in `dispatch()` --- include/IECore/DataAlgo.inl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/IECore/DataAlgo.inl b/include/IECore/DataAlgo.inl index 71ea070209..ad64a51e2c 100644 --- a/include/IECore/DataAlgo.inl +++ b/include/IECore/DataAlgo.inl @@ -36,6 +36,7 @@ #define IECORE_DATAALGO_INL #include "IECore/DateTimeData.h" +#include "IECore/PathMatcherData.h" #include "IECore/SimpleTypedData.h" #include "IECore/SplineData.h" #include "IECore/TransformationMatrixData.h" @@ -193,6 +194,8 @@ typename std::invoke_result_t dispatch( Data *data, F &&fu return functor( static_cast( data ), std::forward( args )... ); case Color4fVectorDataTypeId : return functor( static_cast( data ), std::forward( args )... ); + case PathMatcherDataTypeId : + return functor( static_cast( data ), std::forward( args )... ); default : throw InvalidArgumentException( boost::str ( boost::format( "Data has unknown type '%1%' / '%2%' " ) % typeId % data->typeName() ) ); } @@ -345,6 +348,8 @@ typename std::invoke_result_t dispatch( const Data * return functor( static_cast( data ), std::forward( args )... ); case Color4fVectorDataTypeId : return functor( static_cast( data ), std::forward( args )... ); + case PathMatcherDataTypeId : + return functor( static_cast( data ), std::forward( args )... ); default : throw InvalidArgumentException( boost::str ( boost::format( "Data has unknown type '%1%' / '%2%' " ) % typeId % data->typeName() ) ); }