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 newer version gcc on osx #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nickleefly
Copy link

  • unordered_map is a form of map containter, use
    unordered_map::find(KeyType key) instead, which returns
    unordered_map::iterator, essentially pointer tostd::pair< KeyType,
    ValueType >.

Or you can use unordered_map::operator[](KeyType key) to get access to
element pointed by the key variable. Note that it will create new
element in case it doesn't exist yet.

See http://en.cppreference.com/w/cpp/container/unordered_map for more info.

  • Use newer GCC (at least 4.7) with -std=c++11 option, and you will get
    standardized std::unordered_map instead of tr1::unordered_map

Fix #9

* unordered_map is a form of map containter, use
unordered_map::find(KeyType key) instead, which returns
unordered_map::iterator, essentially pointer tostd::pair< KeyType,
ValueType >.

Or you can use unordered_map::operator[](KeyType key) to get access to
element pointed by the key variable. Note that it will create new
element in case it doesn't exist yet.

See http://en.cppreference.com/w/cpp/container/unordered_map for more info.

* Use newer GCC (at least 4.7) with -std=c++11 option, and you will get
standardized std::unordered_map instead of tr1::unordered_map

Fix adzerk#9
@NicolasPelletier
Copy link

Any chance of seeing this PR delivered and a new version of node-lru-native published ?

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

Successfully merging this pull request may close these issues.

2 participants