Skip to content

Commit a6d0d6f

Browse files
committed
Second attempt to suit clang-format 10
Irritating that different versions of clang-format don't agree on what's an acceptable format, and that clang-format 10 is not easily installable on Ubuntu 21.10.
1 parent 783ad82 commit a6d0d6f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

sigc++/functors/mem_fun.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ struct visitor<bound_mem_functor<T_func, T_arg...>>
187187
* @ingroup mem_fun
188188
*/
189189
template<typename T_return, typename T_obj, typename... T_arg>
190-
inline decltype(auto)
191-
mem_fun(T_return (T_obj::*func)(T_arg...))
190+
inline decltype(auto) mem_fun(T_return (T_obj::*func)(T_arg...))
192191
{
193192
return mem_functor<T_return (T_obj::*)(T_arg...), T_arg...>(func);
194193
}
@@ -213,8 +212,7 @@ mem_fun(T_return (T_obj::*func)(T_arg...) const)
213212
* @ingroup mem_fun
214213
*/
215214
template<typename T_return, typename T_obj, typename... T_arg>
216-
inline decltype(auto)
217-
mem_fun(T_return (T_obj::*func)(T_arg...) volatile)
215+
inline decltype(auto) mem_fun(T_return (T_obj::*func)(T_arg...) volatile)
218216
{
219217
return mem_functor<T_return (T_obj::*)(T_arg...) volatile, T_arg...>(func);
220218
}

sigc++/functors/ptr_fun.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ class pointer_functor<T_return(T_args...)>
106106
* @ingroup ptr_fun
107107
*/
108108
template<typename T_return, typename... T_args>
109-
inline decltype(auto)
110-
ptr_fun(T_return (*func)(T_args...))
109+
inline decltype(auto) ptr_fun(T_return (*func)(T_args...))
111110
{
112111
return pointer_functor<T_return(T_args...)>(func);
113112
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy