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
216df0dd
Commit
216df0dd
authored
Aug 12, 2016
by
Wenzel Jakob
Browse files
quench warning on clang/OSX
parent
bb6c1f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
example/example-virtual-functions.cpp
example/example-virtual-functions.cpp
+1
-1
No files found.
example/example-virtual-functions.cpp
View file @
216df0dd
...
@@ -228,7 +228,7 @@ class PyB_Tpl : public PyA_Tpl<Base> {
...
@@ -228,7 +228,7 @@ class PyB_Tpl : public PyA_Tpl<Base> {
public:
public:
using
PyA_Tpl
<
Base
>::
PyA_Tpl
;
// Inherit constructors (via PyA_Tpl's inherited constructors)
using
PyA_Tpl
<
Base
>::
PyA_Tpl
;
// Inherit constructors (via PyA_Tpl's inherited constructors)
int
unlucky_number
()
override
{
PYBIND11_OVERLOAD
(
int
,
Base
,
unlucky_number
,
);
}
int
unlucky_number
()
override
{
PYBIND11_OVERLOAD
(
int
,
Base
,
unlucky_number
,
);
}
double
lucky_number
()
{
PYBIND11_OVERLOAD
(
double
,
Base
,
lucky_number
,
);
}
double
lucky_number
()
override
{
PYBIND11_OVERLOAD
(
double
,
Base
,
lucky_number
,
);
}
};
};
// Since C_Tpl and D_Tpl don't declare any new virtual methods, we don't actually need these (we can
// Since C_Tpl and D_Tpl don't declare any new virtual methods, we don't actually need these (we can
// use PyB_Tpl<C_Tpl> and PyB_Tpl<D_Tpl> for the trampoline classes instead):
// use PyB_Tpl<C_Tpl> and PyB_Tpl<D_Tpl> for the trampoline classes instead):
...
...
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