View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015249VTK(No Category)public2015-01-08 16:522015-10-28 00:15
ReporterOrion Poplawski 
Assigned ToMarcus D. Hanwell 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0015249: vtkFreeTypeTools.cxx:1190:51: error: no matching function for call to 'min(unsigned int&, int&)'
DescriptionWhile compiling VTK 6.1.0 for Fedora Rawhide:

/builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx: In member function 'bool vtkFreeTypeTools::CalculateBoundingBox(const T&, vtkFreeTypeTools::MetaData&)':
/builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx:1190:51: error: no matching function for call to 'min(unsigned int&, int&)'
                                   metaData.descent);
                                                   ^
/builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx:1190:51: note: candidates are:
cd /builddir/build/BUILD/VTK-6.1.0/build/Rendering/Core && ../../bin/vtkWrapTcl @/builddir/build/BUILD/VTK-6.1.0/build/Rendering/Core/vtkRenderingCoreTCL.args -o /builddir/build/BUILD/VTK-6.1.0/build/Rendering/Core/vtkImageMapperTcl.cxx /builddir/build/BUILD/VTK-6.1.0/Rendering/Core/vtkImageMapper.h
In file included from /usr/include/c++/4.9.2/bits/char_traits.h:39:0,
                 from /usr/include/c++/4.9.2/ios:40,
                 from /usr/include/c++/4.9.2/ostream:38,
                 from /usr/include/c++/4.9.2/iostream:39,
                 from /builddir/build/BUILD/VTK-6.1.0/Common/Core/vtkIOStream.h:33,
                 from /builddir/build/BUILD/VTK-6.1.0/Common/Core/vtkSystemIncludes.h:36,
                 from /builddir/build/BUILD/VTK-6.1.0/build/Common/Core/vtkAtomicInt.h:38,
                 from /builddir/build/BUILD/VTK-6.1.0/Common/Core/vtkObjectBase.h:44,
                 from /builddir/build/BUILD/VTK-6.1.0/Common/Core/vtkObject.h:42,
                 from /builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.h:27,
                 from /builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx:16:
/usr/include/c++/4.9.2/bits/stl_algobase.h:194:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
     min(const _Tp& __a, const _Tp& __b)
     ^
/usr/include/c++/4.9.2/bits/stl_algobase.h:194:5: note: template argument deduction/substitution failed:
/builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx:1190:51: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'int')
                                   metaData.descent);
                                                   ^
In file included from /usr/include/c++/4.9.2/bits/char_traits.h:39:0,
                 from /usr/include/c++/4.9.2/ios:40,
                 from /usr/include/c++/4.9.2/ostream:38,
                 from /usr/include/c++/4.9.2/iostream:39,
                 from /builddir/build/BUILD/VTK-6.1.0/Common/Core/vtkIOStream.h:33,
                 from /builddir/build/BUILD/VTK-6.1.0/Common/Core/vtkSystemIncludes.h:36,
                 from /builddir/build/BUILD/VTK-6.1.0/build/Common/Core/vtkAtomicInt.h:38,
                 from /builddir/build/BUILD/VTK-6.1.0/Common/Core/vtkObjectBase.h:44,
                 from /builddir/build/BUILD/VTK-6.1.0/Common/Core/vtkObject.h:42,
                 from /builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.h:27,
                 from /builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx:16:
/usr/include/c++/4.9.2/bits/stl_algobase.h:240:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
/usr/include/c++/4.9.2/bits/stl_algobase.h:240:5: note: template argument deduction/substitution failed:
/builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx:1190:51: note: deduced conflicting types for parameter 'const _Tp' ('unsigned int' and 'int')
                                   metaData.descent);
                                                   ^
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0034029)
Orion Poplawski (reporter)
2015-01-08 17:00

Some more:
/builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx:1954:77: error: no matching function for call to 'max(int&, unsigned int&)'
       bbox[1] = std::max(bbox[1], pen[0] + bitmapGlyph->left + bitmap->width);
                                                                             ^
/builddir/build/BUILD/VTK-6.1.0/Rendering/FreeType/vtkFreeTypeTools.cxx:1955:79: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'unsigned int')
       bbox[2] = std::min(bbox[2], pen[1] + bitmapGlyph->top - 1 - bitmap->rows);
                                                                               ^
(0034031)
Ben Boeckel (Kitware) (developer)
2015-01-09 09:30

Fixed by Marcus here: http://review.source.kitware.com/#/c/18751/ [^]
(0034032)
Orion Poplawski (reporter)
2015-01-09 09:47

Thanks. Looks like the same patch I came up with.
(0034070)
Marcus D. Hanwell (developer)
2015-01-12 16:24

As Ben pointed out there is a topic in review.
(0035404)
Cory Quammen (developer)
2015-10-28 00:15

The fix in the gerrit patch was merged into master.

 Issue History
Date Modified Username Field Change
2015-01-08 16:52 Orion Poplawski New Issue
2015-01-08 17:00 Orion Poplawski Note Added: 0034029
2015-01-09 07:29 Utkarsh Ayachit Assigned To => Ben Boeckel (Kitware)
2015-01-09 09:30 Ben Boeckel (Kitware) Assigned To Ben Boeckel (Kitware) => Marcus D. Hanwell
2015-01-09 09:30 Ben Boeckel (Kitware) Note Added: 0034031
2015-01-09 09:47 Orion Poplawski Note Added: 0034032
2015-01-12 16:24 Marcus D. Hanwell Note Added: 0034070
2015-01-12 16:24 Marcus D. Hanwell Status backlog => gerrit review
2015-10-28 00:15 Cory Quammen Note Added: 0035404
2015-10-28 00:15 Cory Quammen Status gerrit review => closed
2015-10-28 00:15 Cory Quammen Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team