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
3eee9ba7
Commit
3eee9ba7
authored
Oct 24, 2016
by
Max Lyon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "use std::declval"
This reverts commit
c7a1e5cd
.
parent
8ef9b0bb
Pipeline
#3318
passed with stage
in 6 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/OpenVolumeMesh/Core/SerializersT.cc
src/OpenVolumeMesh/Core/SerializersT.cc
+5
-3
No files found.
src/OpenVolumeMesh/Core/SerializersT.cc
View file @
3eee9ba7
...
...
@@ -43,11 +43,13 @@
#define SERIALIZERST_CC
#include "Serializers.hh"
#include <utility>
namespace
OpenVolumeMesh
{
template
<
typename
T
>
T
&
decllval
();
template
<
bool
B
>
struct
bool_type
;
template
<
>
struct
bool_type
<
true
>
{
char
c
[
1
];
};
template
<
>
struct
bool_type
<
false
>
{
char
c
[
2
];
};
...
...
@@ -59,7 +61,7 @@ template <typename Stream, typename T>
class
has_input_operator
{
private:
template
<
class
U
>
static
true_type
test
(
char
(
*
)[
sizeof
(
std
::
declval
<
Stream
&>
()
>>
std
::
declval
<
U
&
>
(),
void
(),
0
)]);
template
<
class
U
>
static
true_type
test
(
char
(
*
)[
sizeof
(
decllval
<
Stream
>
()
>>
decllval
<
U
>
(),
void
(),
0
)]);
template
<
class
U
>
static
false_type
test
(...);
public:
...
...
@@ -76,7 +78,7 @@ template <typename Stream, typename T>
class
has_output_operator
{
private:
template
<
class
U
>
static
true_type
test
(
char
(
*
)[
sizeof
(
std
::
declval
<
Stream
&>
()
<<
std
::
declval
<
U
&
>
(),
void
(),
0
)]);
template
<
class
U
>
static
true_type
test
(
char
(
*
)[
sizeof
(
decllval
<
Stream
>
()
<<
decllval
<
U
>
(),
void
(),
0
)]);
template
<
class
U
>
static
false_type
test
(...);
public:
...
...
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