Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
227d7857
Commit
227d7857
authored
Mar 01, 2019
by
Praetorius, Simon
Browse files
added missing includes
parent
49e6913c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/amdis/common/FieldMatVec.hpp
View file @
227d7857
...
...
@@ -7,6 +7,8 @@
#include
<dune/common/fvector.hh>
#include
<dune/common/typetraits.hh>
#include
<amdis/common/TypeTraits.hpp>
namespace
std
{
template
<
class
T
,
int
N
>
...
...
src/amdis/common/TypeTraits.hpp
View file @
227d7857
...
...
@@ -35,13 +35,13 @@ namespace AMDiS
template
<
class
T
>
struct
UnderlyingType
{
using
type
=
T
;
using
type
=
remove_cvref_t
<
T
>
;
};
template
<
class
T
>
struct
UnderlyingType
<
std
::
reference_wrapper
<
T
>>
{
using
type
=
T
;
using
type
=
remove_cvref_t
<
T
>
;
};
}
...
...
@@ -53,7 +53,7 @@ namespace AMDiS
#define FWD(obj) std::forward<decltype(obj)>(obj)
/// 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
#define VALUE(...) TYPEOF(__VA_ARGS__)::value
...
...
@@ -65,7 +65,7 @@ namespace AMDiS
struct
Types
{};
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
...
...
@@ -77,7 +77,7 @@ namespace AMDiS
template
<
class
Obj
>
auto
makeUniquePtr
(
Obj
&&
obj
)
{
return
std
::
make_unique
<
remove_cvref_t
<
O
bj
>
>
(
FWD
(
obj
));
return
std
::
make_unique
<
TYPEOF
(
o
bj
)
>
(
FWD
(
obj
));
}
}
// end namespace AMDiS
Write
Preview
Supports
Markdown
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