You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling with -Weffc++11, there appears a new warning. Might be related to #18
include/cuda_utils.hpp:98:7: warning: ‘classconstHybridVector<double>’ has pointer data members [-Weffc++]
classconstHybridVector {
^
include/cuda_utils.hpp:98:7: warning: but does notoverride ‘constHybridVector<double>(const constHybridVector<double>&)’ [-Weffc++]
include/cuda_utils.hpp:98:7: warning: or ‘operator=(const constHybridVector<double>&)’ [-Weffc++]
The text was updated successfully, but these errors were encountered:
* ConstHybridVector provices the method free to manually free device memory
* A better solution would be a reference counting implementation,
but there is no out of the box solution like boost::shared_ptr
* Leaves ComputationalRadiationPhysics#62 still open (smart pointers necessary)
* closes: ComputationalRadiationPhysics#18
erikzenker
pushed a commit
to erikzenker/haseongpu
that referenced
this issue
Jul 2, 2015
* ConstHybridVector provices the method free to manually free device memory
* A better solution would be a reference counting implementation,
but there is no out of the box solution like boost::shared_ptr
* Leaves ComputationalRadiationPhysics#62 still open (smart pointers necessary)
* closes: ComputationalRadiationPhysics#18
By introducing smart pointers, this warning should be removed. A quick
google search gave me a cuda smart pointer implementation. I hope its quick and nice 🌈
When compiling with
-Weffc++11
, there appears a new warning. Might be related to #18The text was updated successfully, but these errors were encountered: