[Boost-bugs] [Boost C++ Libraries] #9986: boost/thread/future.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #9986: boost/thread/future.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-01 18:39:16


#9986: boost/thread/future.hpp
-----------------------+------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.49.0
 Severity: Problem | Keywords: future.hpp
-----------------------+------------------------------
 including this file induces compile errors


 I include the file in my stdafx.h

 #include "boost/thread/future.hpp"

 and get the following errors.

 1>------ Build started: Project: CRAServer, Configuration: Debug Win32
 ------
 1>Compiling...
 1>stdafx.cpp
 1>C:\depot\ExtLibs\boost_Installers\boost\include\boost/thread/win32/condition_variable.hpp(61)
 : warning C4996: 'std::copy_backward': Function call with parameters that
 may be unsafe - this call relies on the caller to check that the passed
 values are correct. To disable this warning, use
 -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++
 'Checked Iterators'
 1> c:\Program Files (x86)\Microsoft Visual Studio
 9.0\VC\include\xutility(2703) : see declaration of 'std::copy_backward'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/error_info_impl.hpp(25)
 : error C2011: 'boost::exception_detail::error_info_base' : 'class' type
 redefinition
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/info.hpp(34)
 : see declaration of 'boost::exception_detail::error_info_base'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/error_info_impl.hpp(69)
 : error C2953: 'boost::error_info' : class template has already been
 defined
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/info.hpp(44)
 : see declaration of 'boost::error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(55)
 : error C2039: 'throw_function_' : is not a member of 'boost::exception'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(45)
 : see declaration of 'boost::exception'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(55)
 : error C2039: 'throw_function_' : is not a member of 'boost::exception'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(45)
 : see declaration of 'boost::exception'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(67)
 : error C2039: 'throw_file_' : is not a member of 'boost::exception'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(45)
 : see declaration of 'boost::exception'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(67)
 : error C2039: 'throw_file_' : is not a member of 'boost::exception'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(45)
 : see declaration of 'boost::exception'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(79)
 : error C2039: 'throw_line_' : is not a member of 'boost::exception'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(45)
 : see declaration of 'boost::exception'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(79)
 : error C2039: 'throw_line_' : is not a member of 'boost::exception'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(45)
 : see declaration of 'boost::exception'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(93)
 : error C2248: 'boost::exception::data_' : cannot access private member
 declared in class 'boost::exception'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(62)
 : see declaration of 'boost::exception::data_'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(45)
 : see declaration of 'boost::exception'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(95)
 : error C2248: 'boost::exception::data_' : cannot access private member
 declared in class 'boost::exception'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(62)
 : see declaration of 'boost::exception::data_'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(45)
 : see declaration of 'boost::exception'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(95)
 : error C2039: 'adopt' : is not a member of 'boost::intrusive_ptr<T>'
 1> with
 1> [
 1> T=boost::exception_detail::error_info_container
 1> ]
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(96)
 : error C2039: 'diagnostic_information' : is not a member of
 'boost::exception_detail::error_info_container'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(25)
 : see declaration of 'boost::exception_detail::error_info_container'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(130)
 : error C2770: invalid explicit template argument(s) for
 'exception_detail::get_error_info_return_type<E,ErrorInfo::value_type>::type
 boost::get_error_info(E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(117)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(130)
 : error C2770: invalid explicit template argument(s) for
 'boost::shared_ptr<const ErrorInfo::value_type>
 boost::get_error_info(const E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(41)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(131)
 : error C2770: invalid explicit template argument(s) for
 'exception_detail::get_error_info_return_type<E,ErrorInfo::value_type>::type
 boost::get_error_info(E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(117)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(131)
 : error C2770: invalid explicit template argument(s) for
 'boost::shared_ptr<const ErrorInfo::value_type>
 boost::get_error_info(const E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(41)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(132)
 : error C2770: invalid explicit template argument(s) for
 'exception_detail::get_error_info_return_type<E,ErrorInfo::value_type>::type
 boost::get_error_info(E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(117)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(132)
 : error C2770: invalid explicit template argument(s) for
 'boost::shared_ptr<const ErrorInfo::value_type>
 boost::get_error_info(const E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(41)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(140)
 : error C2770: invalid explicit template argument(s) for
 'exception_detail::get_error_info_return_type<E,ErrorInfo::value_type>::type
 boost::get_error_info(E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(117)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(140)
 : error C2770: invalid explicit template argument(s) for
 'boost::shared_ptr<const ErrorInfo::value_type>
 boost::get_error_info(const E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(41)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(144)
 : error C2770: invalid explicit template argument(s) for
 'exception_detail::get_error_info_return_type<E,ErrorInfo::value_type>::type
 boost::get_error_info(E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/get_error_info.hpp(117)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/diagnostic_information.hpp(144)
 : error C2770: invalid explicit template argument(s) for
 'boost::shared_ptr<const ErrorInfo::value_type>
 boost::get_error_info(const E &)'
 1>
 C:\depot\ExtLibs\boost_Installers\boost\include\boost/exception/exception.hpp(41)
 : see declaration of 'boost::get_error_info'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(34)
 : error C2144: syntax error : 'void' should be preceded by ';'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(34)
 : error C4430: missing type specifier - int assumed. Note: C++ does not
 support default-int
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(92)
 : error C2662: 'boost::error_info<Tag,T>::value' : cannot convert 'this'
 pointer from 'const boost::original_exception_type' to 'const
 boost::error_info<Tag,T> &'
 1> Reason: cannot convert from 'const
 boost::original_exception_type' to 'const boost::error_info<Tag,T>'
 1> Conversion requires a second user-defined-conversion operator or
 constructor
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(92)
 : error C2227: left of '->name' must point to class/struct/union/generic
 type
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(333)
 : error C2316: 'boost::exception_detail::clone_base &' : cannot be caught
 as the destructor and/or copy constructor are inaccessible
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(335)
 : error C2027: use of undefined type 'boost::exception_detail::clone_base'
 1>
 C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/clone_current_exception.hpp(19)
 : see declaration of 'boost::exception_detail::clone_base'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(335)
 : error C2228: left of '.clone' must have class/struct/union
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(455)
 : error C2144: syntax error : 'void' should be preceded by ';'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(455)
 : error C4430: missing type specifier - int assumed. Note: C++ does not
 support default-int
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(455)
 : error C2086: 'int boost::BOOST_ATTRIBUTE_NORETURN' : redefinition
 1>
 C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(34)
 : see declaration of 'boost::BOOST_ATTRIBUTE_NORETURN'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(458)
 : error C2027: use of undefined type 'boost::exception_detail::clone_base'
 1>
 C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/clone_current_exception.hpp(19)
 : see declaration of 'boost::exception_detail::clone_base'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/exception/detail/exception_ptr.hpp(458)
 : error C2039: 'rethrow' : is not a member of 'boost::shared_ptr<T>'
 1> with
 1> [
 1> T=const boost::exception_detail::clone_base
 1> ]
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(229)
 : error C2143: syntax error : missing ',' before '&&'
 1>
 C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(251)
 : see reference to class template instantiation
 'boost::detail::future_traits<T>' being compiled
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(230)
 : error C2143: syntax error : missing ',' before '&&'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(238)
 : error C2143: syntax error : missing ';' before '{'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(240)
 : error C2143: syntax error : missing ';' before '}'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(242)
 : error C2065: 'rvalue_source_type' : undeclared identifier
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(243)
 : error C2143: syntax error : missing ';' before '{'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(245)
 : error C2143: syntax error : missing ';' before '}'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(248)
 : error C2143: syntax error : missing ';' before '{'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(250)
 : error C2143: syntax error : missing ';' before '}'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(251)
 : error C2143: syntax error : missing ';' before '}'
 1>C:\depot\ExtLibs\boost_Installers\boost_1_49\include\boost/thread/future.hpp(251)
 : fatal error C1004: unexpected end-of-file found
 1>Build log was saved at
 "file://c:\depot\CAAS\AFS_CH47\CRAServer\CRAServer\Debug\BuildLog.htm"
 1>CRAServer - 45 error(s), 1 warning(s)
 ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped
 ==========

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9986>
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