От: | placement_new | ||
Дата: | 21.01.09 10:24 | ||
Оценка: | 2 (1) +1 |
_>struct My
_>{
_> int t;
_>};
_>typedef ptr_list<My> MyList;
_>MyList x;
_>BOOST_FOREACH(My* p, x)
_>{
_> cout << "My: " << p->t << endl;
_>}
_>
_>d:\TEST\boost_test\boost_test\boost_test.cpp(28) : error C2440: 'initializing' : cannot convert from 'boost::ptr_container_detail::sequence_config<T,VoidPtrSeq>::U' to 'My *'
_> with
_> [
_> T=My,
_> VoidPtrSeq=std::list<void *,std::allocator<void *>>
_> ]
_> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called