Commit 3eee9ba7 authored by Max Lyon's avatar Max Lyon

Revert "use std::declval"

This reverts commit c7a1e5cd.
parent 8ef9b0bb
Pipeline #3318 passed with stage
in 6 minutes and 27 seconds
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment