Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
216df0dd
Commit
216df0dd
authored
Aug 12, 2016
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quench warning on clang/OSX
parent
bb6c1f9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
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