Opened 14 years ago
Closed 14 years ago
#2756 closed Bugs (fixed)
Warning while compiling ptr_unordered_map
| Reported by: | anonymous | Owned by: | Daniel James | 
|---|---|---|---|
| Milestone: | Boost 1.39.0 | Component: | unordered | 
| Version: | Boost 1.38.0 | Severity: | Problem | 
| Keywords: | Cc: | 
Description
The following warning appears while compiling any usage of ptr_unordered_map with MSVC 9.0 SP1:
  c:\boost\include\boost-1_38\boost\unordered\detail\hash_table.hpp(228) : warning C4100: 'x' : unreferenced formal parameter
        c:\boost\include\boost-1_38\boost\unordered\detail\hash_table_impl.hpp(175) : see reference to function template instantiation 'void boost::unordered_detail::destroy<std::pair<_Ty1,_Ty2>>(T *)' being compiled
        with
        [
            _Ty1=const size_t,
            _Ty2=void *,
            T=std::pair<const size_t,void *>
        ]
        ..............................................
        c:\boost\include\boost-1_38\boost\ptr_container\ptr_unordered_map.hpp(37) : see reference to class template instantiation 'boost::ptr_map_adapter<T,VoidPtrMap,CloneAllocator,Ordered>' being compiled
        with
        [
            T=mstd::pool,
            VoidPtrMap=boost::unordered_map<size_t,void *,boost::hash<unsigned int>,std::equal_to<size_t>,std::allocator<std::pair<const size_t,void *>>>,
            CloneAllocator=boost::heap_clone_allocator,
            Ordered=false
        ]
      
  Note:
 See   TracTickets
 for help on using tickets.
    

(In [52065]) Tweak unordered for some compilers.
Fixes #2756.
Merged revisions 51982-51983,51995 via svnmerge from https://svn.boost.org/svn/boost/trunk
........
........
........
........