Conversion from local pointer generates error in template

Issue #42 resolved
Nenad Vukicevic created an issue

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)

  1. Log in to comment