// explicitly check for sensible template arguments, but not on windows
// because MSVC creates bogus warnings during normal compilation
-#ifdef DEAL_II_WITH_CXX11
#ifndef DEAL_II_MSVC
static_assert (dim<=spacedim,
"The dimension <dim> of a DoFHandler must be less than or "
"equal to the space dimension <spacedim> in which it lives.");
#endif
-#endif
};
// explicitly check for sensible template arguments, but not on windows
// because MSVC creates bogus warnings during normal compilation
-#ifdef DEAL_II_WITH_CXX11
#ifndef DEAL_II_MSVC
static_assert (dim<=spacedim,
"The dimension <dim> of a FiniteElement must be less than or "
"equal to the space dimension <spacedim> in which it lives.");
#endif
-#endif
};
* The ordering of the shape function, @p interface_constrains, the @p prolongation (embedding)
* and the @p restriction matrices are taken from the FESystem class.
*
- * @note This class is only available when deal.II is compiled with C++11.
- *
* @ingroup fe
*
* @author Denis Davydov, 2016.
* {}
* @endcode
*
- * If your compiler supports the C++11 language standard (or later) and
- * deal.II has been configured to use it, then you could do something like
+ * Using the C++11 language standard (or later) you could do something like
* this to create an element with four base elements and multiplicities 1,
* 2, 3 and 4:
* @code
*
* This code has a problem: it creates four memory leaks because the first
* vector above is created with pointers to elements that are allocated with
- * <code>new</code> but never destroyed. Without C++11, you have another
+ * <code>new</code> but never destroyed. Without C++11, you would have another
* problem: brace-initializer don't exist in earlier C++ standards.
*
* The solution to the second of these problems is to create two static
* function, use the add_fe_name() function. This function does not work if
* one wants to get a codimension 1 finite element.
*/
- template <int dim, int spacedim
-#ifdef DEAL_II_WITH_CXX11
- =dim
-#endif
- >
+ template <int dim, int spacedim = dim>
FiniteElement<dim, spacedim> *
get_fe_by_name (const std::string &name);
#include <deal.II/grid/tria_iterator_base.h>
#include <set>
-#ifdef DEAL_II_WITH_CXX11
#include <tuple>
-#endif
DEAL_II_NAMESPACE_OPEN
-#ifdef DEAL_II_WITH_CXX11
namespace internal
{
namespace FilteredIterator
auto fi = filter_iterators(i,p);
return filter_iterators(fi, args...);
}
-#endif
/* ------------------ Inline functions and templates ------------ */
public:
// explicitly check for sensible template arguments
-#ifdef DEAL_II_WITH_CXX11
static_assert (dim<=spacedim,
"The dimension <dim> of a Manifold must be less than or "
"equal to the space dimension <spacedim> in which it lives.");
-#endif
/**
{
public:
// explicitly check for sensible template arguments
-#ifdef DEAL_II_WITH_CXX11
static_assert (dim<=spacedim,
"The dimension <dim> of a ChartManifold must be less than or "
"equal to the space dimension <spacedim> in which it lives.");
-#endif
/**
* Constructor. The optional argument can be used to specify the periodicity
#include <boost/signals2.hpp>
#include <boost/serialization/vector.hpp>
#include <boost/serialization/map.hpp>
-#ifdef DEAL_II_WITH_CXX11
-# include <boost/serialization/unique_ptr.hpp>
-#else
-# include <boost/serialization/scoped_ptr.hpp>
-#endif
+#include <boost/serialization/unique_ptr.hpp>
#include <boost/serialization/split_member.hpp>
DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
*/
Triangulation (const Triangulation<dim, spacedim> &t);
-#ifdef DEAL_II_WITH_CXX11
/**
* Move constructor.
*
* Move assignment operator.
*/
Triangulation &operator = (Triangulation<dim, spacedim> &&tria);
-#endif
/**
* Delete the object and all levels of the hierarchy.
// explicitly check for sensible template arguments, but not on windows
// because MSVC creates bogus warnings during normal compilation
-#ifdef DEAL_II_WITH_CXX11
#ifndef DEAL_II_MSVC
static_assert (dim<=spacedim,
"The dimension <dim> of a Triangulation must be less than or "
"equal to the space dimension <spacedim> in which it lives.");
#endif
-#endif
};
-#ifdef DEAL_II_WITH_CXX11
-
template <int dim, int spacedim>
Triangulation<dim, spacedim>::
Triangulation (Triangulation<dim, spacedim> &&tria)
return *this;
}
-#endif
-
template <int dim, int spacedim>