<div dir="ltr">Test cases?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 6:24 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard-llvm@metafoo.co.uk" target="_blank">richard-llvm@metafoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rsmith<br>
Date: Mon Jul 22 20:24:30 2013<br>
New Revision: 186909<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=186909&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=186909&view=rev</a><br>
Log:<br>
Add some missing cv-qualifiers.<br>
<br>
Modified:<br>
libcxx/trunk/include/__functional_03<br>
<br>
Modified: libcxx/trunk/include/__functional_03<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__functional_03?rev=186909&r1=186908&r2=186909&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__functional_03?rev=186909&r1=186908&r2=186909&view=diff</a><br>
==============================================================================<br>
--- libcxx/trunk/include/__functional_03 (original)<br>
+++ libcxx/trunk/include/__functional_03 Mon Jul 22 20:24:30 2013<br>
@@ -102,98 +102,98 @@ mem_fn(_Rp (_Tp::* __pm)(_A0, _A1, _A2))<br>
<br>
template<class _Rp, class _Tp><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)()><br>
+__mem_fn<_Rp (_Tp::*)() const><br>
mem_fn(_Rp (_Tp::* __pm)() const)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)()>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)() const>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp, class _A0><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)(_A0)><br>
+__mem_fn<_Rp (_Tp::*)(_A0) const><br>
mem_fn(_Rp (_Tp::* __pm)(_A0) const)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)(_A0)>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)(_A0) const>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp, class _A0, class _A1><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)(_A0, _A1)><br>
+__mem_fn<_Rp (_Tp::*)(_A0, _A1) const><br>
mem_fn(_Rp (_Tp::* __pm)(_A0, _A1) const)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)(_A0, _A1)>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)(_A0, _A1) const>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp, class _A0, class _A1, class _A2><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2)><br>
+__mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2) const><br>
mem_fn(_Rp (_Tp::* __pm)(_A0, _A1, _A2) const)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2)>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2) const>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)()><br>
+__mem_fn<_Rp (_Tp::*)() volatile><br>
mem_fn(_Rp (_Tp::* __pm)() volatile)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)()>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)() volatile>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp, class _A0><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)(_A0)><br>
+__mem_fn<_Rp (_Tp::*)(_A0) volatile><br>
mem_fn(_Rp (_Tp::* __pm)(_A0) volatile)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)(_A0)>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)(_A0) volatile>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp, class _A0, class _A1><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)(_A0, _A1)><br>
+__mem_fn<_Rp (_Tp::*)(_A0, _A1) volatile><br>
mem_fn(_Rp (_Tp::* __pm)(_A0, _A1) volatile)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)(_A0, _A1)>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)(_A0, _A1) volatile>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp, class _A0, class _A1, class _A2><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2)><br>
+__mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2) volatile><br>
mem_fn(_Rp (_Tp::* __pm)(_A0, _A1, _A2) volatile)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2)>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2) volatile>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)()><br>
+__mem_fn<_Rp (_Tp::*)() const volatile><br>
mem_fn(_Rp (_Tp::* __pm)() const volatile)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)()>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)() const volatile>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp, class _A0><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)(_A0)><br>
+__mem_fn<_Rp (_Tp::*)(_A0) const volatile><br>
mem_fn(_Rp (_Tp::* __pm)(_A0) const volatile)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)(_A0)>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)(_A0) const volatile>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp, class _A0, class _A1><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)(_A0, _A1)><br>
+__mem_fn<_Rp (_Tp::*)(_A0, _A1) const volatile><br>
mem_fn(_Rp (_Tp::* __pm)(_A0, _A1) const volatile)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)(_A0, _A1)>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)(_A0, _A1) const volatile>(__pm);<br>
}<br>
<br>
template<class _Rp, class _Tp, class _A0, class _A1, class _A2><br>
inline _LIBCPP_INLINE_VISIBILITY<br>
-__mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2)><br>
+__mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2) const volatile><br>
mem_fn(_Rp (_Tp::* __pm)(_A0, _A1, _A2) const volatile)<br>
{<br>
- return __mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2)>(__pm);<br>
+ return __mem_fn<_Rp (_Tp::*)(_A0, _A1, _A2) const volatile>(__pm);<br>
}<br>
<br>
// bad_function_call<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>