Modify

Opened 8 years ago

Closed 8 years ago

#2756 closed Bugs (fixed)

Warning while compiling ptr_unordered_map

Reported by: anonymous Owned by: danieljames
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
        ]

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by danieljames

  • Resolution set to fixed
  • Status changed from new to closed

(In [52065]) Tweak unordered for some compilers.

Fixes #2756.

Merged revisions 51982-51983,51995 via svnmerge from https://svn.boost.org/svn/boost/trunk

........

r51982 | danieljames | 2009-03-26 07:00:21 +0000 (Thu, 26 Mar 2009) | 3 lines

Revert [51409]

It isn't working on Borland.

........

r51983 | danieljames | 2009-03-26 07:00:46 +0000 (Thu, 26 Mar 2009) | 1 line

Try to destruct values in a way that all compilers might like.

........

r51995 | danieljames | 2009-03-26 21:09:51 +0000 (Thu, 26 Mar 2009) | 1 line

Give up and use another macro to destruct values.

........

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain danieljames.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.