File tree Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 21
21
#define openPMD_HAVE_ADIOS2_BP5 0
22
22
#endif
23
23
24
- namespace detail
25
- {
26
- template <typename Variable, typename SFINAE = void >
27
- struct CanTheMemorySelectionBeReset
24
+ namespace openPMD
28
25
{
29
- static constexpr bool value = false ;
30
- };
31
-
32
- template <typename Variable>
33
- struct CanTheMemorySelectionBeReset <
34
- Variable,
35
- decltype (std::declval<Variable>().SetMemorySelection())>
26
+ namespace detail
36
27
{
37
- static constexpr bool value = true ;
38
- };
28
+ template <typename Variable, typename SFINAE = void >
29
+ struct CanTheMemorySelectionBeReset
30
+ {
31
+ static constexpr bool value = false ;
32
+ };
33
+
34
+ template <typename Variable>
35
+ struct CanTheMemorySelectionBeReset <
36
+ Variable,
37
+ decltype (std::declval<Variable>().SetMemorySelection())>
38
+ {
39
+ static constexpr bool value = true ;
40
+ };
39
41
} // namespace detail
40
42
41
43
constexpr bool CanTheMemorySelectionBeReset =
42
44
detail::CanTheMemorySelectionBeReset<adios2::Variable<int >>::value;
45
+ } // namespace openPMD
43
46
44
47
#else
45
48
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ void WriteDataset::call(ADIOS2File &ba, detail::BufferedPut &bp)
121
121
engine.Put (var, ptr);
122
122
if (bp.param .memorySelection .has_value ())
123
123
{
124
- if constexpr (CanTheMemorySelectionBeReset)
124
+ if constexpr (openPMD:: CanTheMemorySelectionBeReset)
125
125
{
126
126
var.SetMemorySelection ();
127
127
}
@@ -207,7 +207,7 @@ struct RunUniquePtrPut
207
207
engine.Put (var, ptr);
208
208
if (bufferedPut.memorySelection .has_value ())
209
209
{
210
- if constexpr (CanTheMemorySelectionBeReset)
210
+ if constexpr (openPMD:: CanTheMemorySelectionBeReset)
211
211
{
212
212
var.SetMemorySelection ();
213
213
}
You can’t perform that action at this time.
0 commit comments