/**
* Copy operator. This is not a lightweight object so we don't allow
- * copying and generate an exception if this function is called.
+ * copying and generate a compile-time error if this function is called.
*/
Scalar &
- operator=(const Scalar<dim, spacedim> &);
+ operator=(const Scalar<dim, spacedim> &) = delete;
/**
* Return the value of the vector component selected by this view, for the
/**
* Copy operator. This is not a lightweight object so we don't allow
- * copying and generate an exception if this function is called.
+ * copying and generate a compile-time error if this function is called.
*/
Vector &
- operator=(const Vector<dim, spacedim> &);
+ operator=(const Vector<dim, spacedim> &) = delete;
/**
* Return the value of the vector components selected by this view, for
/**
* Copy operator. This is not a lightweight object so we don't allow
- * copying and generate an exception if this function is called.
+ * copying and generate a compile-time error if this function is called.
*/
SymmetricTensor &
- operator=(const SymmetricTensor<2, dim, spacedim> &);
+ operator=(const SymmetricTensor<2, dim, spacedim> &) = delete;
/**
* Return the value of the vector components selected by this view, for
/**
* Copy operator. This is not a lightweight object so we don't allow
- * copying and generate an exception if this function is called.
+ * copying and generate a compile-time error if this function is called.
*/
Tensor &
- operator=(const Tensor<2, dim, spacedim> &);
+ operator=(const Tensor<2, dim, spacedim> &) = delete;
/**
* Return the value of the vector components selected by this view, for
const Mapping<dim, spacedim> & mapping,
const FiniteElement<dim, spacedim> &fe);
+ /**
+ * The copy operator is deleted since objects of this class are not copyable.
+ */
+ FEValuesBase &
+ operator=(const FEValuesBase &) = delete;
/**
* Destructor.
*/
FEValuesBase(const FEValuesBase &);
- /**
- * Copy operator. Since objects of this class are not copyable, we make it
- * private, and also do not implement it.
- */
- FEValuesBase &
- operator=(const FEValuesBase &);
-
/**
* A cache for all possible FEValuesViews objects.
*/
- template <int dim, int spacedim>
- Scalar<dim, spacedim> &
- Scalar<dim, spacedim>::operator=(const Scalar<dim, spacedim> &)
- {
- // we shouldn't be copying these objects
- Assert(false, ExcInternalError());
- return *this;
- }
-
-
-
template <int dim, int spacedim>
Vector<dim, spacedim>::Vector(const FEValuesBase<dim, spacedim> &fe_values,
const unsigned int first_vector_component)
- template <int dim, int spacedim>
- Vector<dim, spacedim> &
- Vector<dim, spacedim>::operator=(const Vector<dim, spacedim> &)
- {
- // we shouldn't be copying these objects
- Assert(false, ExcInternalError());
- return *this;
- }
-
-
-
template <int dim, int spacedim>
SymmetricTensor<2, dim, spacedim>::SymmetricTensor(
const FEValuesBase<dim, spacedim> &fe_values,
- template <int dim, int spacedim>
- SymmetricTensor<2, dim, spacedim> &
- SymmetricTensor<2, dim, spacedim>::
- operator=(const SymmetricTensor<2, dim, spacedim> &)
- {
- // we shouldn't be copying these objects
- Assert(false, ExcInternalError());
- return *this;
- }
-
-
-
template <int dim, int spacedim>
Tensor<2, dim, spacedim>::Tensor(const FEValuesBase<dim, spacedim> &fe_values,
const unsigned int first_tensor_component)
- template <int dim, int spacedim>
- Tensor<2, dim, spacedim> &
- Tensor<2, dim, spacedim>::operator=(const Tensor<2, dim, spacedim> &)
- {
- // we shouldn't be copying these objects
- Assert(false, ExcInternalError());
- return *this;
- }
-
-
-
namespace internal
{
// Given values of degrees of freedom, evaluate the