Skip to content

Commit

Permalink
Declare const InterestPoint& explicitly to avoid compilation error on
Browse files Browse the repository at this point in the history
openmp-enabled clang

Fixes PointCloudLibrary#1458

Verified that it works openmp-enabled clang trunk (clang version
3.9.0 (https://github.com/llvm-mirror/clang.git
93de2a0297b6b058f67fe1b622f2a084ea752291)) and Xcode-bundled
clang (Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM
3.6.0svn))
  • Loading branch information
r9y9 committed Feb 16, 2016
1 parent b1140e0 commit fecfbad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion features/src/narf.cpp
Original file line number Diff line number Diff line change
@@ -380,7 +380,8 @@ Narf::extractForInterestPoints (const RangeImage& range_image, const PointCloud<
//!!! nizar 20110408 : for OpenMP sake on MSVC this must be kept signed
for (int interest_point_idx = 0; interest_point_idx < int (interest_points.points.size ()); ++interest_point_idx)
{
Vector3fMapConst point = interest_points.points[interest_point_idx].getVector3fMap ();
const InterestPoint& interest_point = interest_points.points[interest_point_idx];
Vector3fMapConst point = interest_point.getVector3fMap ();

Narf* feature = new Narf;
if (!feature->extractFromRangeImage(range_image, point, descriptor_size, support_size))

0 comments on commit fecfbad

Please sign in to comment.