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
1dc940d4
Commit
1dc940d4
authored
Apr 18, 2016
by
Wenzel Jakob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quenched -pendantic warnings (closes #167)
parent
b2b44a9a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
example/example12.cpp
+8
-5
example/issues.cpp
+1
-1
include/pybind11/cast.h
+1
-1
No files found.
example/example12.cpp
View file @
1dc940d4
...
@@ -50,9 +50,11 @@ public:
...
@@ -50,9 +50,11 @@ public:
virtual
bool
run_bool
()
{
virtual
bool
run_bool
()
{
PYBIND11_OVERLOAD_PURE
(
PYBIND11_OVERLOAD_PURE
(
bool
,
bool
,
/* Return type */
Example12
,
Example12
,
/* Parent class */
run_bool
run_bool
,
/* Name of function */
/* This function has no arguments. The trailing comma
in the previous line is needed for some compilers */
);
);
throw
std
::
runtime_error
(
"this will never be reached"
);
throw
std
::
runtime_error
(
"this will never be reached"
);
}
}
...
@@ -61,8 +63,9 @@ public:
...
@@ -61,8 +63,9 @@ public:
PYBIND11_OVERLOAD_PURE
(
PYBIND11_OVERLOAD_PURE
(
void
,
/* Return type */
void
,
/* Return type */
Example12
,
/* Parent class */
Example12
,
/* Parent class */
pure_virtual
/* Name of function */
pure_virtual
,
/* Name of function */
/* This function has no arguments */
/* This function has no arguments. The trailing comma
in the previous line is needed for some compilers */
);
);
}
}
};
};
...
...
example/issues.cpp
View file @
1dc940d4
...
@@ -15,7 +15,7 @@ struct Base {
...
@@ -15,7 +15,7 @@ struct Base {
struct
DispatchIssue
:
Base
{
struct
DispatchIssue
:
Base
{
virtual
void
dispatch
(
void
)
const
{
virtual
void
dispatch
(
void
)
const
{
PYBIND11_OVERLOAD_PURE
(
void
,
Base
,
dispatch
);
PYBIND11_OVERLOAD_PURE
(
void
,
Base
,
dispatch
,
/* no arguments */
);
}
}
};
};
...
...
include/pybind11/cast.h
View file @
1dc940d4
...
@@ -251,7 +251,7 @@ protected:
...
@@ -251,7 +251,7 @@ protected:
} \
} \
operator type*() { return &value; } \
operator type*() { return &value; } \
operator type&() { return value; } \
operator type&() { return value; } \
template <typename _T> using cast_op_type = pybind11::detail::cast_op_type<_T>
;
template <typename _T> using cast_op_type = pybind11::detail::cast_op_type<_T>
#define PYBIND11_DECLARE_HOLDER_TYPE(type, holder_type) \
#define PYBIND11_DECLARE_HOLDER_TYPE(type, holder_type) \
namespace pybind11 { namespace detail { \
namespace pybind11 { namespace detail { \
...
...
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