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
f373e3d6
"git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "7769e7719c8bf8cb2f75f59221c263617408564d"
Commit
f373e3d6
authored
Jan 30, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Fixing oversight introduced with commit
95425f13
.
parent
b69f9fed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_class.cpp
tests/test_class.cpp
+1
-1
No files found.
tests/test_class.cpp
View file @
f373e3d6
...
@@ -504,7 +504,7 @@ CHECK_BASE(1); CHECK_BASE(2); CHECK_BASE(3); CHECK_BASE(4); CHECK_BASE(5); CHECK
...
@@ -504,7 +504,7 @@ CHECK_BASE(1); CHECK_BASE(2); CHECK_BASE(3); CHECK_BASE(4); CHECK_BASE(5); CHECK
CHECK_ALIAS
(
1
);
CHECK_ALIAS
(
2
);
CHECK_NOALIAS
(
3
);
CHECK_ALIAS
(
4
);
CHECK_NOALIAS
(
5
);
CHECK_ALIAS
(
6
);
CHECK_ALIAS
(
7
);
CHECK_NOALIAS
(
8
);
CHECK_ALIAS
(
1
);
CHECK_ALIAS
(
2
);
CHECK_NOALIAS
(
3
);
CHECK_ALIAS
(
4
);
CHECK_NOALIAS
(
5
);
CHECK_ALIAS
(
6
);
CHECK_ALIAS
(
7
);
CHECK_NOALIAS
(
8
);
#define CHECK_HOLDER(N, TYPE) static_assert(std::is_same<typename DoesntBreak##N::holder_type, std::TYPE##_ptr<BreaksBase<N>>>::value, \
#define CHECK_HOLDER(N, TYPE) static_assert(std::is_same<typename DoesntBreak##N::holder_type, std::TYPE##_ptr<BreaksBase<N>>>::value, \
"DoesntBreak" #N " has wrong holder_type!")
"DoesntBreak" #N " has wrong holder_type!")
#define CHECK_SMART_HOLDER(N) static_assert(std::is_same<typename DoesntBreak##N::holder_type, smart_holder, \
#define CHECK_SMART_HOLDER(N) static_assert(std::is_same<typename DoesntBreak##N::holder_type,
py::
smart_holder
>::value
, \
"DoesntBreak" #N " has wrong holder_type!")
"DoesntBreak" #N " has wrong holder_type!")
CHECK_HOLDER
(
1
,
unique
);
CHECK_HOLDER
(
2
,
unique
);
CHECK_HOLDER
(
3
,
unique
);
CHECK_HOLDER
(
1
,
unique
);
CHECK_HOLDER
(
2
,
unique
);
CHECK_HOLDER
(
3
,
unique
);
#ifndef PYBIND11_USE_SMART_HOLDER_AS_DEFAULT
#ifndef PYBIND11_USE_SMART_HOLDER_AS_DEFAULT
...
...
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