* constraint_and_return_value template is true, then the return type is just
* the second type in the template.
*
+ * @deprecated Use std::enable_if instead.
+ *
* @author Wolfgang Bangerth, 2003
*/
template <typename T> struct constraint_and_return_value<true,T>
{
typedef T type;
-};
+} DEAL_II_DEPRECATED;
DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
template <typename VectorType>
- typename constraint_and_return_value<!IsBlockVector<VectorType>::value,
+ typename std::enable_if<!IsBlockVector<VectorType>::value,
typename VectorType::value_type>::type
min_element (const VectorType &criteria)
{
template <typename VectorType>
- typename constraint_and_return_value<!IsBlockVector<VectorType>::value,
+ typename std::enable_if<!IsBlockVector<VectorType>::value,
typename VectorType::value_type>::type
max_element (const VectorType &criteria)
{
template <typename VectorType>
- typename constraint_and_return_value<IsBlockVector<VectorType>::value,
+ typename std::enable_if<IsBlockVector<VectorType>::value,
typename VectorType::value_type>::type
min_element (const VectorType &criteria)
{
template <typename VectorType>
- typename constraint_and_return_value<IsBlockVector<VectorType>::value,
+ typename std::enable_if<IsBlockVector<VectorType>::value,
typename VectorType::value_type>::type
max_element (const VectorType &criteria)
{