* [gentoo-commits] gentoo-x86 commit in dev-libs/boost/files: boost-1.45.0-lambda_bind.patch
@ 2011-01-21 11:54 Markos Chandras (hwoarang)
0 siblings, 0 replies; only message in thread
From: Markos Chandras (hwoarang) @ 2011-01-21 11:54 UTC (permalink / raw
To: gentoo-commits
hwoarang 11/01/21 11:54:28
Added: boost-1.45.0-lambda_bind.patch
Log:
Apply lambda-bind patch. Bug #351998. Thanks to Sebastian Luther (few) <SebastianLuther@gmx.de>
(Portage version: 2.1.9.33/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-libs/boost/files/boost-1.45.0-lambda_bind.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/boost/files/boost-1.45.0-lambda_bind.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/boost/files/boost-1.45.0-lambda_bind.patch?rev=1.1&content-type=text/plain
Index: boost-1.45.0-lambda_bind.patch
===================================================================
Index: trunk/boost/lambda/detail/function_adaptors.hpp
===================================================================
--- a/trunk/boost/lambda/detail/function_adaptors.hpp
+++ b/trunk/boost/lambda/detail/function_adaptors.hpp
@@ -17,4 +17,7 @@
#include "boost/type_traits/same_traits.hpp"
#include "boost/type_traits/remove_reference.hpp"
+#include "boost/type_traits/remove_cv.hpp"
+#include "boost/type_traits/add_const.hpp"
+#include "boost/type_traits/add_volatile.hpp"
#include "boost/utility/result_of.hpp"
@@ -238,12 +241,14 @@
template<class Args> class sig {
typedef typename boost::tuples::element<1, Args>::type argument_type;
-
- typedef typename detail::IF<boost::is_const<argument_type>::value,
+ typedef typename boost::remove_reference<
+ argument_type
+ >::type unref_type;
+
+ typedef typename detail::IF<boost::is_const<unref_type>::value,
typename boost::add_const<T>::type,
T
>::RET properly_consted_return_type;
- typedef typename detail::IF<
- boost::is_volatile<properly_consted_return_type>::value,
+ typedef typename detail::IF<boost::is_volatile<unref_type>::value,
typename boost::add_volatile<properly_consted_return_type>::type,
properly_consted_return_type
@@ -252,6 +257,8 @@
public:
- typedef typename
- boost::add_reference<properly_cvd_return_type>::type type;
+ typedef typename detail::IF<boost::is_reference<argument_type>::value,
+ typename boost::add_reference<properly_cvd_return_type>::type,
+ typename boost::remove_cv<T>::type
+ >::RET type;
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-21 11:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-21 11:54 [gentoo-commits] gentoo-x86 commit in dev-libs/boost/files: boost-1.45.0-lambda_bind.patch Markos Chandras (hwoarang)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox