@@ -20,14 +20,15 @@ class sexp {
20
20
sexp () = default ;
21
21
22
22
sexp (SEXP data) : data_(data), preserve_token_(preserved.insert(data_)) {
23
- // REprintf("created %x %x : %i\n", data_, preserve_token_, protect_head_size());
23
+ // REprintf("created %p %p\n", reinterpret_cast<void*>(data_),
24
+ // reinterpret_cast<void*>(preserve_token_));
24
25
}
25
26
26
27
sexp (const sexp& rhs) {
27
28
data_ = rhs.data_ ;
28
29
preserve_token_ = preserved.insert (data_);
29
- // REprintf("copied %x new protect %x : %i \n", rhs.data_, preserve_token_ ,
30
- // protect_head_size( ));
30
+ // REprintf("copied %p new protect %p \n", reinterpret_cast<void*>( rhs.data_) ,
31
+ // reinterpret_cast<void*>(preserve_token_ ));
31
32
}
32
33
33
34
sexp (sexp&& rhs) {
@@ -37,15 +38,15 @@ class sexp {
37
38
rhs.data_ = R_NilValue;
38
39
rhs.preserve_token_ = R_NilValue;
39
40
40
- // REprintf("moved %x : %i \n", rhs.data_, protect_head_size( ));
41
+ // REprintf("moved %p \n", reinterpret_cast<void*>( rhs.data_));
41
42
}
42
43
43
44
sexp& operator =(const sexp& rhs) {
44
45
preserved.release (preserve_token_);
45
46
46
47
data_ = rhs.data_ ;
47
48
preserve_token_ = preserved.insert (data_);
48
- // REprintf("assigned %x : %i \n", rhs.data_, protect_head_size( ));
49
+ // REprintf("assigned %p \n", reinterpret_cast<void*>( rhs.data_));
49
50
return *this ;
50
51
}
51
52
0 commit comments