Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 260163 Details for
Bug 352022
dev-libs/boost-1.45 lambda::bind() can cause const qualifier mismatch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
upstream patch
changeset_67640.diff (text/plain), 1.57 KB, created by
Sebastian Luther (few)
on 2011-01-18 13:27:01 UTC
(
hide
)
Description:
upstream patch
Filename:
MIME Type:
Creator:
Sebastian Luther (few)
Created:
2011-01-18 13:27:01 UTC
Size:
1.57 KB
patch
obsolete
>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; > }; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 352022
: 260163