-
assigned issue to
Conversion from local pointer generates error in template
Issue #42
resolved
The following code can reproduce the error:
global_ptr<int> a;
a = new_<int>();
a = global_ptr<int>(a.local());
----
[...]global_ptr.hpp:61:42: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
raw_ptr_ = pshm_local_addr2remote(ptr, rank_);
If I add '-fpermissive' on the command line I get the same warning and test compiles and runs.
Comments (2)
-
-
- changed status to resolved
Fix Issue
#42: in global_ptr implementation, insert cast when converting a void to a T.→ <<cset 0079b31dc9b7>>
- Log in to comment