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
OpenDAS
dlib
Commits
ad8a2d19
"...pytorch/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "93b39729ee02693cd6315dd4dadd8e3e624e1d6b"
Commit
ad8a2d19
authored
Jun 07, 2011
by
Davis King
Browse files
added a test
parent
584c9057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
dlib/test/any.cpp
dlib/test/any.cpp
+10
-0
No files found.
dlib/test/any.cpp
View file @
ad8a2d19
...
@@ -104,6 +104,16 @@ namespace
...
@@ -104,6 +104,16 @@ namespace
}
}
DLIB_TEST
(
error
);
DLIB_TEST
(
error
);
a
=
1
;
b
=
2
;
int
*
a_ptr
=
&
a
.
get
<
int
>
();
int
*
b_ptr
=
&
b
.
get
<
int
>
();
swap
(
a
,
b
);
DLIB_TEST
(
a_ptr
==
&
b
.
get
<
int
>
());
DLIB_TEST
(
b_ptr
==
&
a
.
get
<
int
>
());
}
}
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
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