Skip to content

Commit cc52523

Browse files
committed
flann: add normal assignment operator for cvflann::any
1 parent f49f056 commit cc52523

File tree

1 file changed

+6
-0
lines changed
  • modules/flann/include/opencv2/flann

1 file changed

+6
-0
lines changed

modules/flann/include/opencv2/flann/any.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ struct any
246246
return assign(x);
247247
}
248248

249+
/// Assignment operator. Template-based version above doesn't work as expected. We need regular assignment operator here.
250+
any& operator=(const any& x)
251+
{
252+
return assign(x);
253+
}
254+
249255
/// Assignment operator, specialed for literal strings.
250256
/// They have types like const char [6] which don't work as expected.
251257
any& operator=(const char* x)

0 commit comments

Comments
 (0)