[Cppcms-users] ambiguous overload with boost and booster
Brought to you by:
artyom-beilis
|
From: augustin <aug...@ov...> - 2015-02-20 11:37:01
|
Hello, I am trying to use boost, but booster is wrecking havock. I have this boost ptr list: boost::ptr_list<categories_form> categories_form inherits from cppcms::form. When I compile, I get the error: /usr/include/boost/ptr_container/clone_allocator.hpp:56:9: error: call of overloaded 'checked_delete(const categories_form*&)' is ambiguous Candidates are: /usr/include/boost/checked_delete.hpp:29:31: void boost::checked_delete(const categories_form*) and: /usr/local/include/booster/checked_delete.h:25:31: void booster::checked_delete(const categories_form*) Note the include files. The only difference is boost vs booster: boost::checked_delete(...) booster::checked_delete(...) Now, I had to install booster to install cppcms. Also, booster does not implement ptr_list: $ locate ptr_list.hpp /usr/include/boost/ptr_container/ptr_list.hpp /usr/include/boost/ptr_container/serialize_ptr_list.hpp /usr/include/boost/spirit/home/support/detail/lexer/containers/ptr_list.hpp I wonder why the compiler is looking into the booster:: namespace. How do I configure cmake or whatever to prevent confusing the compiler? thanks augustin ?++ |