Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
c250ee51
Commit
c250ee51
authored
Sep 22, 2016
by
Dzhelil Rufat
Browse files
Use more consistent indentation and typenames names.
parent
20ef6265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
include/pybind11/numpy.h
include/pybind11/numpy.h
+5
-4
No files found.
include/pybind11/numpy.h
View file @
c250ee51
...
@@ -911,10 +911,11 @@ detail::vectorize_helper<Return (*) (Args ...), Return, Args...> vectorize(Retur
...
@@ -911,10 +911,11 @@ detail::vectorize_helper<Return (*) (Args ...), Return, Args...> vectorize(Retur
return
vectorize
<
Return
(
*
)
(
Args
...),
Return
,
Args
...
>
(
f
,
f
);
return
vectorize
<
Return
(
*
)
(
Args
...),
Return
,
Args
...
>
(
f
,
f
);
}
}
template
<
typename
func
>
auto
vectorize
(
func
&&
f
)
->
decltype
(
template
<
typename
Func
>
vectorize
(
std
::
forward
<
func
>
(
f
),
(
typename
detail
::
remove_class
<
decltype
(
&
std
::
remove_reference
<
func
>::
type
::
operator
())
>::
type
*
)
nullptr
))
{
auto
vectorize
(
Func
&&
f
)
->
decltype
(
return
vectorize
(
std
::
forward
<
func
>
(
f
),
(
typename
detail
::
remove_class
<
decltype
(
vectorize
(
std
::
forward
<
Func
>
(
f
),
(
typename
detail
::
remove_class
<
decltype
(
&
std
::
remove_reference
<
Func
>::
type
::
operator
())
>::
type
*
)
nullptr
))
{
&
std
::
remove_reference
<
func
>::
type
::
operator
())
>::
type
*
)
nullptr
);
return
vectorize
(
std
::
forward
<
Func
>
(
f
),
(
typename
detail
::
remove_class
<
decltype
(
&
std
::
remove_reference
<
Func
>::
type
::
operator
())
>::
type
*
)
nullptr
);
}
}
NAMESPACE_END
(
pybind11
)
NAMESPACE_END
(
pybind11
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment