mirror of
https://github.com/opencv/opencv.git
synced 2025-07-31 18:07:08 +08:00
flann: add normal assignment operator for cvflann::any
This commit is contained in:
parent
f49f056d29
commit
cc52523375
@ -246,6 +246,12 @@ public:
|
|||||||
return assign(x);
|
return assign(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Assignment operator. Template-based version above doesn't work as expected. We need regular assignment operator here.
|
||||||
|
any& operator=(const any& x)
|
||||||
|
{
|
||||||
|
return assign(x);
|
||||||
|
}
|
||||||
|
|
||||||
/// Assignment operator, specialed for literal strings.
|
/// Assignment operator, specialed for literal strings.
|
||||||
/// They have types like const char [6] which don't work as expected.
|
/// They have types like const char [6] which don't work as expected.
|
||||||
any& operator=(const char* x)
|
any& operator=(const char* x)
|
||||||
|
Loading…
Reference in New Issue
Block a user