* parallel::shared::Triangulation objects throughout the library even if
* it is disabled.
*
- * Since the constructor of this class is private, no such objects can
- * actually be created if MPI is not available.
+ * Since the constructor of this class is deleted, no such objects
+ * can actually be created as this would be pointless given that
+ * MPI is not available.
*/
template <int dim, int spacedim = dim>
class Triangulation : public dealii::parallel::Triangulation<dim,spacedim>
{
public:
+ /**
+ * Constructor. Deleted to make sure that objects of this type cannot be
+ * constructed (see also the class documentation).
+ */
+ Triangulation () = delete;
/**
* A dummy function to return empty vector.
* A dummy function which always returns true.
*/
bool with_artificial_cells() const;
- private:
- /**
- * Constructor.
- */
- Triangulation ();
+ private:
/**
* A dummy vector.
*/
{
namespace shared
{
- template <int dim, int spacedim>
- Triangulation<dim,spacedim>::Triangulation ()
- :
- dealii::parallel::Triangulation<dim,spacedim>(MPI_COMM_SELF)
- {
- Assert (false, ExcNotImplemented());
- }
-
-
-
template <int dim, int spacedim>
bool
Triangulation<dim,spacedim>::with_artificial_cells() const