Opened 15 years ago
Closed 15 years ago
#1683 closed Bugs (fixed)
Boost Intrusive - Superflous template parameter
| Reported by: | Owned by: | Ion Gaztañaga | |
|---|---|---|---|
| Milestone: | Boost 1.35.0 | Component: | intrusive | 
| Version: | Boost 1.34.1 | Severity: | Problem | 
| Keywords: | Cc: | 
Description
In boost/intrusive/unordered_set.hpp
template<class KeyType, class KeyHasher, class KeyValueEqual, class Disposer> size_type count(const KeyType& key, KeyHasher hash_func, KeyValueEqual equal_func) const { return table_.count(key, hash_func, equal_func); }
The 'class Disposer' template argument is superflous. With that there, the compiler is not able to automatically infer the template types so I can't write foo.count<>(key,hash,equal).
  Note:
 See   TracTickets
 for help on using tickets.
    
Thanks for the report. Fixed in both in trunk and 1.35 release branches.