Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
c7a1e5cd
Commit
c7a1e5cd
authored
Oct 21, 2016
by
Max Lyon
Browse files
use std::declval
parent
77d3df03
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenVolumeMesh/Core/SerializersT.cc
View file @
c7a1e5cd
...
...
@@ -47,10 +47,6 @@
namespace
OpenVolumeMesh
{
template
<
typename
T
>
T
&
decllval
();
template
<
bool
B
>
class
bool_type
;
template
<
>
class
bool_type
<
true
>
{
char
c
[
1
];
};
template
<
>
class
bool_type
<
false
>
{
char
c
[
2
];
};
...
...
@@ -62,7 +58,7 @@ template <typename Stream, typename T>
class
has_input_operator
{
private:
template
<
class
U
>
static
true_type
test
(
char
(
*
)[
sizeof
(
decl
l
val
<
Stream
>
()
>>
decl
l
val
<
U
>
(),
void
(),
0
)]);
template
<
class
U
>
static
true_type
test
(
char
(
*
)[
sizeof
(
std
::
declval
<
Stream
&
>
()
>>
std
::
declval
<
U
&
>
(),
void
(),
0
)]);
template
<
class
U
>
static
false_type
test
(...);
public:
...
...
@@ -79,7 +75,7 @@ template <typename Stream, typename T>
class
has_output_operator
{
private:
template
<
class
U
>
static
true_type
test
(
char
(
*
)[
sizeof
(
decl
l
val
<
Stream
>
()
<<
decl
l
val
<
U
>
(),
void
(),
0
)]);
template
<
class
U
>
static
true_type
test
(
char
(
*
)[
sizeof
(
std
::
declval
<
Stream
&
>
()
<<
std
::
declval
<
U
&
>
(),
void
(),
0
)]);
template
<
class
U
>
static
false_type
test
(...);
public:
...
...
Max Lyon
@lyon
Mentioned in commit
3eee9ba7
·
Oct 24, 2016
Mentioned in commit
3eee9ba7
Mentioned in commit 3eee9ba7f358a2ae4008537609be1ac359b7252b
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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