Skip to content

Commit de744fc

Browse files
committed
COMP: Fix compile error introduced by 3279b33 in OpenCVVideoIOTest
3279b33 introduced the compile error: C:\Dev\ITK-git\Modules\Video\BridgeOpenCV\test\itkOpenCVVideoIOTest.cxx(41,38): error C2131: expression did not evaluate to a constant Build started at 13:57... 1>------ Build started: Project: ITKVideoBridgeOpenCVTestDriver, Configuration: Debug x64 ------ 1>itkOpenCVVideoIOTest.cxx 1>C:\Dev\ITK-git\Modules\Video\BridgeOpenCV\test\itkOpenCVVideoIOTest.cxx(41,38): error C2131: expression did not evaluate to a constant 1> C:\Dev\ITK-git\Modules\Video\BridgeOpenCV\test\itkOpenCVVideoIOTest.cxx(41,40): 1> failure was caused by call of undefined function or one not declared 'constexpr' 1> C:\Dev\ITK-git\Modules\Video\BridgeOpenCV\test\itkOpenCVVideoIOTest.cxx(41,40): 1> see usage of 'itk::SmartPointer<itk::OpenCVVideoIO::Self>::operator ->' 1> C:\Dev\ITK-git\Modules\Video\BridgeOpenCV\test\itkOpenCVVideoIOTest.cxx(41,38): 1> the call stack of the evaluation (the oldest call first) is 1> C:\Dev\ITK-git\Modules\Video\BridgeOpenCV\test\itkOpenCVVideoIOTest.cxx(41,40): 1> while evaluating function 'itk::OpenCVVideoIO *itk::SmartPointer<itk::OpenCVVideoIO::Self>::operator ->(void) noexcept const' 1>Done building project "ITKVideoBridgeOpenCVTestDriver.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 56 up-to-date, 0 skipped ========== ========== Build completed at 13:58 and took 02.868 seconds ==========
1 parent 4e9de19 commit de744fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Video/BridgeOpenCV/test/itkOpenCVVideoIOTest.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ImageType::Pointer
3838
itkImageFromBuffer(itk::OpenCVVideoIO::Pointer opencvIO, void * buffer, size_t bufferSize)
3939
{
4040
// Set up for incoming image
41-
constexpr ImageType::SizeType size{ opencvIO->GetDimensions(0), opencvIO->GetDimensions(1) };
41+
const ImageType::SizeType size{ opencvIO->GetDimensions(0), opencvIO->GetDimensions(1) };
4242
constexpr ImageType::IndexType start{};
4343
ImageType::RegionType region = { start, size };
4444
ImageType::PointType origin;

0 commit comments

Comments
 (0)