Skip to content

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