Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USE_UNORDERED_MAP define should be protected by "namespace" #214

Open
fps opened this issue Oct 8, 2014 · 1 comment
Open

USE_UNORDERED_MAP define should be protected by "namespace" #214

fps opened this issue Oct 8, 2014 · 1 comment

Comments

@fps
Copy link

fps commented Oct 8, 2014

e.g.

FLANN_USE_UNORDERED_MAP

We had a mysterious error in the serialization code if we included the flann headers after some opencv headers and used g++ -std=c++11. Changing the include order fixed the issue (including flann headers before any opencv headers). It seems that opencv headers leak #define USE_UNORDERED_MAP 1 in case of std >= c++0x. This then gets picked up by the #if in lsh_table.h in the original flann library.

@ahmadhasan2k8
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants