I am just experimenting with boost :: pool to find out if it has a faster dispenser to work with which I work, but I cannot figure out how to use it with boost :: unordered_map:
Here is the code snippet:
unordered_map<int,int,boost::hash<int>, fast_pool_allocator<int>> theMap;
theMap[1] = 2;
Here is the compilation I get:
Error 3 of error C2064: the term does not evaluate a function with two arguments C: \ Program Files (x86) \ boost \ boost_1_38 \ boost \ unordered \ detail \ hash_table_impl.hpp 2048
If I comment on the use of the map, for example. "theMap [1] = 2", then the compilation error disappears.
source
share