id summary reporter owner description type status milestone component version severity resolution keywords cc 3536 ptr_map doesn't support incomplete type with view clone allocator olafvdspek@… Thorsten Ottosen "{{{ #include class C; int main() { boost::ptr_map c; return 0; } boost\checked_delete.hpp(32) : error C2027: use of undefined type 'C' c:\documents and settings\internet\my documents\visual studio 2008\projects\test\test.cpp(3) : see declaration of 'C' boost\ptr_container\clone_allocator.hpp(56) : see reference to function template instantiation 'void boost::checked_delete(T *)' being compiled with [ T=C ] boost\ptr_container\clone_allocator.hpp(74) : see reference to function template instantiation 'void boost::delete_clone(const T *)' being compiled with [ U=C, T=C ] boost\ptr_container\detail\reversible_ptr_container.hpp(126) : see reference to function template instantiation 'void boost::heap_clone_allocator::deallocate_clone(const U *)' being compiled with [ U=C ] boost\ptr_container\detail\reversible_ptr_container.hpp(119) : while compiling class template member function 'void boost::ptr_container_detail::reversible_ptr_container::null_clone_allocator::deallocate_clone(const C *)' with [ Config=boost::ptr_container_detail::map_config>>,true>, CloneAllocator=boost::heap_clone_allocator, allow_null_values=false ] boost\ptr_container\detail\reversible_ptr_container.hpp(276) : see reference to class template instantiation 'boost::ptr_container_detail::reversible_ptr_container::null_clone_allocator' being compiled with [ Config=boost::ptr_container_detail::map_config>>,true>, CloneAllocator=boost::heap_clone_allocator, allow_null_values=false ] boost\ptr_container\detail\reversible_ptr_container.hpp(275) : while compiling class template member function 'void boost::ptr_container_detail::reversible_ptr_container::null_policy_deallocate_clone(const C *)' with [ Config=boost::ptr_container_detail::map_config>>,true>, CloneAllocator=boost::heap_clone_allocator ] boost\ptr_container\detail\associative_ptr_container.hpp(34) : see reference to class template instantiation 'boost::ptr_container_detail::reversible_ptr_container' being compiled with [ Config=boost::ptr_container_detail::map_config>>,true>, CloneAllocator=boost::heap_clone_allocator ] boost\ptr_container\ptr_map_adapter.hpp(130) : see reference to class template instantiation 'boost::ptr_container_detail::associative_ptr_container' being compiled with [ Config=boost::ptr_container_detail::map_config>>,true>, CloneAllocator=boost::heap_clone_allocator ] boost\ptr_container\ptr_map_adapter.hpp(388) : see reference to class template instantiation 'boost::ptr_container_detail::ptr_map_adapter_base' being compiled with [ T=C, VoidPtrMap=std::map>>, CloneAllocator=boost::heap_clone_allocator, Ordered=true ] boost\ptr_container\ptr_map.hpp(36) : see reference to class template instantiation 'boost::ptr_map_adapter' being compiled with [ T=C, VoidPtrMap=std::map>>, CloneAllocator=boost::heap_clone_allocator ] c:\documents and settings\internet\my documents\visual studio 2008\projects\test\test.cpp(7) : see reference to class template instantiation 'boost::ptr_map' being compiled with [ Key=int, T=C, Compare=boost::view_clone_allocator ] boost\checked_delete.hpp(32) : error C2118: negative subscript boost\checked_delete.hpp(34) : warning C4150: deletion of pointer to incomplete type 'C'; no destructor called c:\documents and settings\internet\my documents\visual studio 2008\projects\test\test.cpp(3) : see declaration of 'C' }}}" Bugs closed Boost 1.41.0 ptr_container Boost 1.40.0 Problem invalid