You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This function will return a different policy for each type. template<typename T> base_any_policy* get_policy() { static typename choose_policy<T>::type policy; return &policy; }
The text was updated successfully, but these errors were encountered:
The following code in https://github.com/mariusmuja/flann/blob/master/src/cpp/flann/util/any.h is not thread safe in MSVC until VS 2015 ("Magic statics" support in https://msdn.microsoft.com/en-us/library/hh567368.aspx). This may crash the program randomly when creating multiple Index objects (KDTreeSingleIndex etc.) at the same time.
/// This function will return a different policy for each type. template<typename T> base_any_policy* get_policy() { static typename choose_policy<T>::type policy; return &policy; }
The text was updated successfully, but these errors were encountered: