diff --git a/src/libPMacc/include/cuSTL/container/CartBuffer.hpp b/src/libPMacc/include/cuSTL/container/CartBuffer.hpp index 3c5a426441..699a045559 100644 --- a/src/libPMacc/include/cuSTL/container/CartBuffer.hpp +++ b/src/libPMacc/include/cuSTL/container/CartBuffer.hpp @@ -71,7 +71,7 @@ class CartBuffer math::Size_t pitch; HDINLINE void init(); HDINLINE void exit(); - HDINLINE CartBuffer() {} + HDINLINE CartBuffer() : refCount(NULL) {} private: /* makes this class able to emulate a r-value reference */ BOOST_COPYABLE_AND_MOVABLE(This) diff --git a/src/libPMacc/include/cuSTL/container/CartBuffer.tpp b/src/libPMacc/include/cuSTL/container/CartBuffer.tpp index 2a07cf9011..0e43bab5eb 100644 --- a/src/libPMacc/include/cuSTL/container/CartBuffer.tpp +++ b/src/libPMacc/include/cuSTL/container/CartBuffer.tpp @@ -82,7 +82,7 @@ namespace detail template CartBuffer::CartBuffer -(const math::Size_t& _size) +(const math::Size_t& _size) : refCount(NULL) { this->_size = _size; init(); @@ -90,28 +90,28 @@ CartBuffer::CartBuffer template CartBuffer::CartBuffer -(size_t x) +(size_t x) : refCount(NULL) { this->_size = math::Size_t<1>(x); init(); } template CartBuffer::CartBuffer -(size_t x, size_t y) +(size_t x, size_t y) : refCount(NULL) { this->_size = math::Size_t<2>(x, y); init(); } template CartBuffer::CartBuffer -(size_t x, size_t y, size_t z) +(size_t x, size_t y, size_t z) : refCount(NULL) { this->_size = math::Size_t<3>(x, y, z); init(); } template CartBuffer::CartBuffer -(const CartBuffer& other) +(const CartBuffer& other) : refCount(NULL) { this->dataPointer = other.dataPointer; this->refCount = other.refCount; @@ -124,7 +124,7 @@ CartBuffer::CartBuffer template CartBuffer::CartBuffer -(BOOST_RV_REF(CartBuffer) other) +(BOOST_RV_REF(CartBuffer) other) : refCount(NULL) { this->dataPointer = 0; this->refCount = 0;