We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e01f9c9 + f9e5b60 commit a48614cCopy full SHA for a48614c
include/libcloudph++/lgrngn/arrinfo.hpp
@@ -39,6 +39,13 @@ namespace libcloudphxx
39
data(ai.data),
40
strides(!strvec.empty() ? &strvec[0] : ai.strides)
41
{}
42
+
43
+ // non-default move ctor handling both the original and alternative usage
44
+ arrinfo_t(arrinfo_t &&ai) :
45
+ strvec(std::move(ai.strvec)),
46
+ data(ai.data),
47
+ strides(!strvec.empty() ? &strvec[0] : ai.strides)
48
+ {}
49
};
50
51
0 commit comments