Skip to content
Snippets Groups Projects
Commit ec24b768 authored by Christian Engwer's avatar Christian Engwer
Browse files

[doc] add some more documentation about the enable_if fix of FS#1457

parent b6ddd1cb
No related branches found
No related tags found
No related merge requests found
......@@ -406,7 +406,15 @@ namespace Dune {
return (z-=b);
}
//! vector space add scalar to all comps
//! \brief vector space add scalar to all comps
/**
we use enable_if to avoid an ambiguity, if the
function parameter can be converted to value_type implicitly.
(see FS#1457)
The function is only enabled, if the parameter is directly
convertible to value_type.
*/
template <typename ValueType>
typename std::enable_if<
std::is_convertible<ValueType, value_type>::value,
......@@ -420,7 +428,15 @@ namespace Dune {
return asImp();
}
//! vector space subtract scalar from all comps
//! \brief vector space subtract scalar from all comps
/**
we use enable_if to avoid an ambiguity, if the
function parameter can be converted to value_type implicitly.
(see FS#1457)
The function is only enabled, if the parameter is directly
convertible to value_type.
*/
template <typename ValueType>
typename std::enable_if<
std::is_convertible<ValueType, value_type>::value,
......@@ -434,7 +450,15 @@ namespace Dune {
return asImp();
}
//! vector space multiplication with scalar
//! \brief vector space multiplication with scalar
/**
we use enable_if to avoid an ambiguity, if the
function parameter can be converted to value_type implicitly.
(see FS#1457)
The function is only enabled, if the parameter is directly
convertible to value_type.
*/
template <typename ValueType>
typename std::enable_if<
std::is_convertible<ValueType, value_type>::value,
......@@ -448,7 +472,15 @@ namespace Dune {
return asImp();
}
//! vector space division by scalar
//! \brief vector space division by scalar
/**
we use enable_if to avoid an ambiguity, if the
function parameter can be converted to value_type implicitly.
(see FS#1457)
The function is only enabled, if the parameter is directly
convertible to value_type.
*/
template <typename ValueType>
typename std::enable_if<
std::is_convertible<ValueType, value_type>::value,
......
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