Skip to content

Commit 8725e8d

Browse files
committed
Add a comment about why unmove() still exists
1 parent e59ec45 commit 8725e8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

inst/include/cpp11/declarations.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ using namespace ::cpp11;
1313
#include <R_ext/Rdynload.h>
1414

1515
namespace cpp11 {
16+
// No longer used, but was previously used in `code.cpp` code generation in cpp11 0.1.0.
17+
// `code.cpp` could be generated with cpp11 0.1.0, but the package could be compiled with
18+
// cpp11 >0.1.0, so `unmove()` must exist in newer cpp11 too. Eventually remove this once
19+
// we decide enough time has gone by since `unmove()` was removed.
20+
// https://github.com/r-lib/cpp11/issues/88
21+
// https://github.com/r-lib/cpp11/pull/75
1622
template <class T>
1723
T& unmove(T&& t) {
1824
return t;

0 commit comments

Comments
 (0)