Re[3]: boost::call_once баг ?
От: Feonyf  
Дата: 01.09.09 18:31
Оценка:
Здравствуйте, ioni, Вы писали:

I>Привели бы код оишбки компилятора что ли


проект http://files.rsdn.ru/46977/testPtr.7z
компилятор говорит это:

1>------ Build started: Project: testPtr, Configuration: Debug Win32 ------

1>Compiling...
1>stdafx.cpp
1>Compiling...
1>testPtr.cpp
1>c:\program files\microsoft visual studio 9.0\vc\include\algorithm(40) : error C2679: binary '==' : no operator found which takes a right-hand operand of type 'wmain::MyClass *const ' (or there is no acceptable conversion)
1> could be 'built-in C++ operator==(wmain::MyClass *boost::shared_ptr<T>::* , wmain::MyClass *boost::shared_ptr<T>::* )'
1> with
1> [
1> T=wmain::MyClass
1> ]
1> or 'built-in C++ operator==(wmain::MyClass *, wmain::MyClass *)'
1> while trying to match the argument list '(boost::shared_ptr<T>, wmain::MyClass *const )'
1> with
1> [
1> T=wmain::MyClass
1> ]
1> c:\program files\microsoft visual studio 9.0\vc\include\algorithm(74) : see reference to function template instantiation '_InIt std::_Find<std::_Vector_iterator<_Ty,_Alloc>,wmain::MyClass>(_InIt,_InIt,wmain::MyClass &)' being compiled
1> with
1> [
1> _InIt=std::_Vector_iterator<MyClassPtr,std::allocator<MyClassPtr>>,
1> _Ty=MyClassPtr,
1> _Alloc=std::allocator<MyClassPtr>
1> ]
1> c:\users\user\desktop\testptr\testptr.cpp(22) : see reference to function template instantiation '_InIt std::find<std::_Vector_iterator<_Ty,_Alloc>,wmain::MyClass*>(_InIt,_InIt,wmain::MyClass &)' being compiled
1> with
1> [
1> _InIt=std::_Vector_iterator<MyClassPtr,std::allocator<MyClassPtr>>,
1> _Ty=MyClassPtr,
1> _Alloc=std::allocator<MyClassPtr>
1> ]
1>Build Time 0:03
1>Build log was saved at "file://c:\Users\user\Desktop\testPtr\Debug\BuildLog.htm"
1>testPtr — 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Моя строка построения буста:
.\bjam link=static threading=multi runtime-link=static -j %NUMBER_OF_PROCESSORS% --with-filesystem --with-thread --with-date_time address-model=64
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.