FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/test/object_manager.cpp at develop · njlr/python · GitHub
njlr
/
python
Public
forked from
boostorg/python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
test
/
object_manager.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
33 lines (26 loc) · 1.24 KB
Breadcrumbs
python
/
test
/
object_manager.cpp
Copy path
File metadata and controls
executable file
·
33 lines (26 loc) · 1.24 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
Copyright David Abrahams 2002.
//
Distributed under the Boost Software License, Version 1.0. (See
//
accompanying file LICENSE_1_0.txt or copy at
//
http://www.boost.org/LICENSE_1_0.txt)
#
include
<
boost/python/converter/object_manager.hpp
>
#
include
<
boost/python/borrowed.hpp
>
#
include
<
boost/static_assert.hpp
>
#
include
<
boost/python/handle.hpp
>
using
namespace
boost
::python
;
using
namespace
boost
::python::converter
;
struct
X
{};
int
main
()
{
BOOST_STATIC_ASSERT
(is_object_manager<handle<> >::value);
BOOST_STATIC_ASSERT
(!is_object_manager<
int
>::value);
BOOST_STATIC_ASSERT
(!is_object_manager<X>::value);
BOOST_STATIC_ASSERT
(is_reference_to_object_manager<handle<>&>::value);
BOOST_STATIC_ASSERT
(is_reference_to_object_manager<handle<>
const
&>::value);
BOOST_STATIC_ASSERT
(is_reference_to_object_manager<handle<>
volatile
&>::value);
BOOST_STATIC_ASSERT
(is_reference_to_object_manager<handle<>
const
volatile
&>::value);
BOOST_STATIC_ASSERT
(!is_reference_to_object_manager<handle<> >::value);
BOOST_STATIC_ASSERT
(!is_reference_to_object_manager<X>::value);
BOOST_STATIC_ASSERT
(!is_reference_to_object_manager<X&>::value);
BOOST_STATIC_ASSERT
(!is_reference_to_object_manager<X
const
&>::value);
return
0
;
}
Back
|
FazBrowse Home
|
New Git URL