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

Missing functional include in src/chunkmap.h #182

Closed
Akjosch opened this issue Sep 6, 2011 · 1 comment
Closed

Missing functional include in src/chunkmap.h #182

Akjosch opened this issue Sep 6, 2011 · 1 comment

Comments

@Akjosch
Copy link

Akjosch commented Sep 6, 2011

src/chunkmap.h uses std::tr1::hash, which is defined in the following include file according to the documentation - http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf page 97:

#include TR1INCLUDE(functional)

The "unordered_map" include often does include "functional" (it uses it for its hasher type argument), but doesn't have to (and in fact it doesn't if you use the Boost variants, like I tried). Consequently, in some configurations leaving this include out will break compiling; adding it after the "unordered_map" include won't hurt though, since all include files have "guards" in them to prevent double inclusion.

@fador
Copy link
Owner

fador commented Jan 28, 2016

TR1 not used anymore -> closing

@fador fador closed this as completed Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants