Skip to content
Snippets Groups Projects
Commit 227d7857 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

added missing includes

parent 49e6913c
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
#include <dune/common/typetraits.hh> #include <dune/common/typetraits.hh>
#include <amdis/common/TypeTraits.hpp>
namespace std namespace std
{ {
template <class T, int N> template <class T, int N>
......
...@@ -35,13 +35,13 @@ namespace AMDiS ...@@ -35,13 +35,13 @@ namespace AMDiS
template <class T> template <class T>
struct UnderlyingType struct UnderlyingType
{ {
using type = T; using type = remove_cvref_t<T>;
}; };
template <class T> template <class T>
struct UnderlyingType<std::reference_wrapper<T>> struct UnderlyingType<std::reference_wrapper<T>>
{ {
using type = T; using type = remove_cvref_t<T>;
}; };
} }
...@@ -53,7 +53,7 @@ namespace AMDiS ...@@ -53,7 +53,7 @@ namespace AMDiS
#define FWD(obj) std::forward<decltype(obj)>(obj) #define FWD(obj) std::forward<decltype(obj)>(obj)
/// A decay version of decltype, similar to GCCs __typeof__ /// A decay version of decltype, similar to GCCs __typeof__
#define TYPEOF(...) remove_cvref_t<decltype(__VA_ARGS__)> #define TYPEOF(...) AMDiS::remove_cvref_t<decltype(__VA_ARGS__)>
/// Extract the static value of an integral_constant variable /// Extract the static value of an integral_constant variable
#define VALUE(...) TYPEOF(__VA_ARGS__)::value #define VALUE(...) TYPEOF(__VA_ARGS__)::value
...@@ -65,7 +65,7 @@ namespace AMDiS ...@@ -65,7 +65,7 @@ namespace AMDiS
struct Types {}; struct Types {};
template <class... Ts> template <class... Ts>
using Types_t = Types<std::decay_t<Ts>...>; using Types_t = Types<remove_cvref_t<Ts>...>;
/// Alias that indicates ownership of resources /// Alias that indicates ownership of resources
...@@ -77,7 +77,7 @@ namespace AMDiS ...@@ -77,7 +77,7 @@ namespace AMDiS
template <class Obj> template <class Obj>
auto makeUniquePtr(Obj&& obj) auto makeUniquePtr(Obj&& obj)
{ {
return std::make_unique<remove_cvref_t<Obj>>(FWD(obj)); return std::make_unique<TYPEOF(obj)>(FWD(obj));
} }
} // end namespace AMDiS } // end namespace AMDiS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment