Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/source_lcao/module_hcontainer/hcontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ HContainer<T>::HContainer(HContainer<T>&& HR_in) noexcept
this->wrapper_pointer = HR_in.wrapper_pointer;
this->gamma_only = HR_in.gamma_only;
this->paraV = HR_in.paraV;
this->allocated = HR_in.allocated;
this->current_R = -1;
HR_in.wrapper_pointer = nullptr;
// tmp terms not moved
Expand All @@ -63,6 +64,7 @@ HContainer<T>& HContainer<T>::operator=(HContainer<T>&& HR_in) noexcept
this->wrapper_pointer = HR_in.wrapper_pointer;
this->gamma_only = HR_in.gamma_only;
this->paraV = HR_in.paraV;
this->allocated = HR_in.allocated;
this->current_R = -1;

HR_in.wrapper_pointer = nullptr;
Expand Down
5 changes: 4 additions & 1 deletion source/source_lcao/module_hcontainer/hcontainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ class HContainer
* data of HR_in will not be copied, please call add() after this constructor to copy data.
*/
HContainer(const HContainer<T>& HR_in, T* data_array = nullptr);


// copy assignment, not allowed
HContainer& operator=(const HContainer<T>& HR_in) = delete;

// move constructor
HContainer(HContainer<T>&& HR_in) noexcept;
// move assignment
Expand Down
Loading