|
Boost Users : |
From: Duane Murphy (duanemurphy_at_[hidden])
Date: 2006-12-18 15:50:09
--- At Mon, 18 Dec 2006 15:04:11 -0500, Jeff F wrote:
>Duane Murphy wrote:
>> I'm trying to use boost::ptr_map<> and cannot get calls insert to
>> compile.
>>
>> I'm on Mac OS X using gcc 3.3 with Xcode.
>>
>> Even the most basic code fails to compile:
>>
>> boost::ptr_map< in, int* > my_map;
>
>shouldn't this be(ie: no *):
>
> boost::ptr_map< int, int > my_map;
Sorry, copy and paste error. Yes, it should be but the error remains:
error: no matching function for call to `boost::ptr_map<int, int,
std::less<int>, boost::heap_clone_allocator,
std::allocator<std::pair<const int, void*> > >::insert(int, int*&)'
ptr_map_adapter.hpp:392: error: candidates are: std::pair<typename
boost::ptr_container_detail::ptr_map_adapter_base<T, VoidPtrMap,
CloneAllocator>::iterator, bool> boost::ptr_map_adapter<T, VoidPtrMap,
CloneAllocator>::insert(typename boos
t::ptr_container_detail::ptr_map_adapter_base<T, VoidPtrMap,
CloneAllocator>::key_type&, typename
boost::ptr_container_detail::ptr_map_adapter_base<T, VoidPtrMap,
CloneAllocator>::value_type) [with T = int, VoidPtrMap = std::map<int,
void*, std::less<int>, std::allocator<std::pair<const int, void*> > >,
CloneAllocator = boost::heap_clone_allocator]
...Duane
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net