Skip to content
Snippets Groups Projects
Commit f981d33b authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[discretefunction.default] clearly doc the need for manual ctors

parent 1a879cd8
No related branches found
No related tags found
No related merge requests found
......@@ -164,13 +164,14 @@ public:
{
}
// manual copy ctor needed bc. of the storage provider
DiscreteFunction(const ThisType& other)
: VectorProviderBaseType(new VectorType(other.vector()))
, BaseType(other.space(), VectorProviderBaseType::storage_access(), other.name())
{
}
//! \todo is this intentionally c&p of the copy ctor?
// manual move ctor needed bc. of the storage provider
DiscreteFunction(ThisType&& source)
: VectorProviderBaseType(new VectorType(source.vector()))
, BaseType(source.space(), VectorProviderBaseType::storage_access(), source.name())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment