Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10026: Building Boost with #define BOOST_SP_ENABLE_DEBUG_HOOKS generates compile error C2665 in Visual C++ 2012
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-15 12:48:18
#10026: Building Boost with #define BOOST_SP_ENABLE_DEBUG_HOOKS generates compile
error C2665 in Visual C++ 2012
---------------------------------+----------------------------
Reporter: Clifford.Jackson@⦠| Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Building Boost
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------+----------------------------
Changes (by tm@â¦):
* cc: tm@⦠(added)
Comment:
Also seen similar behavior in our codebase:
{{{
[58/1477] CXX
3rdParty/Boost/src/libs/program_options/src/options_description.o
FAILED: /Users/tobias/llvm/bin/clang++ -MMD -MF
3rdParty/Boost/src/libs/program_options/src/options_description.o.d -c -O0
-fsanitize=address -fno-omit-frame-pointer -DBOOST_SP_ENABLE_DEBUG_HOOKS
-DBOOST_SIGNALS_NO_DEPRECATION_WARNING -g -isystem /Users/tobias/dev/rep
/swift-work-clean/3rdParty/Boost/src -DSWIFT_EXPERIMENTAL_FT
-DSWIFT_EXPERIMENTAL_HISTORY -DSWIFT_EXPERIMENTAL_WB -DBOOST_ALL_NO_LIB
-DBOOST_SYSTEM_NO_DEPRECATED -I. -c
3rdParty/Boost/src/libs/program_options/src/options_description.cpp -o
3rdParty/Boost/src/libs/program_options/src/options_description.o
In file included from
3rdParty/Boost/src/libs/program_options/src/options_description.cpp:10:
In file included from /Users/tobias/dev/rep/swift-work-
clean/3rdParty/Boost/src/boost/program_options/options_description.hpp:16:
In file included from /Users/tobias/dev/rep/swift-work-
clean/3rdParty/Boost/src/boost/shared_ptr.hpp:17:
In file included from /Users/tobias/dev/rep/swift-work-
clean/3rdParty/Boost/src/boost/smart_ptr/shared_ptr.hpp:32:
In file included from /Users/tobias/dev/rep/swift-work-
clean/3rdParty/Boost/src/boost/smart_ptr/detail/shared_count.hpp:30:
/Users/tobias/dev/rep/swift-work-
clean/3rdParty/Boost/src/boost/smart_ptr/detail/sp_counted_impl.hpp:69:44:
error: cannot initialize a parameter of type 'void *' with an lvalue of
type 'const boost::program_options::value_semantic *'
boost::sp_scalar_constructor_hook( px, sizeof(X), this );
^~
/Users/tobias/dev/rep/swift-work-
clean/3rdParty/Boost/src/boost/smart_ptr/detail/shared_count.hpp:91:23:
note: in instantiation of member function
'boost::detail::sp_counted_impl_p<const
boost::program_options::value_semantic>::sp_counted_impl_p' requested here
pi_ = new sp_counted_impl_p<Y>( p );
^
/Users/tobias/dev/rep/swift-work-
clean/3rdParty/Boost/src/boost/smart_ptr/shared_ptr.hpp:183:44: note: in
instantiation of function template specialization
'boost::detail::shared_count::shared_count<const
boost::program_options::value_semantic>' requested here
explicit shared_ptr( Y * p ): px( p ), pn( p ) // Y must be complete
^
3rdParty/Boost/src/libs/program_options/src/options_description.cpp:54:7:
note: in instantiation of function template specialization
'boost::shared_ptr<const
boost::program_options::value_semantic>::shared_ptr<const
boost::program_options::value_semantic>' requested here
: m_value_semantic(s)
^
/Users/tobias/dev/rep/swift-work-
clean/3rdParty/Boost/src/boost/smart_ptr/detail/sp_counted_impl.hpp:45:41:
note: passing argument to parameter 'px' here
void sp_scalar_constructor_hook( void * px, std::size_t size, void * pn );
^
1 error generated.
[58/1477] CXX 3rdParty/Boost/src/libs/program_options/src/value_semantic.o
ninja: build stopped: subcommand failed.
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10026#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC