Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
2353b9b8
Commit
2353b9b8
authored
Jun 27, 2016
by
Wenzel Jakob
Browse files
quench C4459 warning on MSVC2015
parent
37e1f61f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+1
-1
No files found.
include/pybind11/pybind11.h
View file @
2353b9b8
...
...
@@ -1004,7 +1004,7 @@ template <typename... Args> struct init {
typename
std
::
enable_if
<!
std
::
is_same
<
Base
,
Alias
>
::
value
&&
!
std
::
is_constructible
<
Base
,
Args
...
>::
value
,
int
>::
type
=
0
>
void
execute
(
pybind11
::
class_
<
Base
,
Holder
,
Alias
>
&
class_
,
const
Extra
&
...
extra
)
const
{
class_
.
def
(
"__init__"
,
[](
Alias
*
self
,
Args
...
args
)
{
new
(
self
)
Alias
(
args
...);
},
extra
...);
class_
.
def
(
"__init__"
,
[](
Alias
*
self
_
,
Args
...
args
)
{
new
(
self
_
)
Alias
(
args
...);
},
extra
...);
}
};
...
...
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