Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenVolumeMesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
c7a1e5cd
Commit
c7a1e5cd
authored
Oct 21, 2016
by
Max Lyon
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use std::declval
parent
77d3df03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/OpenVolumeMesh/Core/SerializersT.cc
src/OpenVolumeMesh/Core/SerializersT.cc
+2
-6
No files found.
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
(
decllval
<
Stream
>
()
>>
decllval
<
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
(
decllval
<
Stream
>
()
<<
decllval
<
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
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