Skip to content
Snippets Groups Projects
Commit 99d1dc26 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

Merge branch 'issue/intel_compiler_compatibility' into 'master'

added 'using namespace' inside generic lambdas to workaround an intel compiler bug

See merge request core/dune-common!432
parents d5ab5050 5213992f
No related branches found
No related tags found
No related merge requests found
......@@ -36,8 +36,9 @@ template<class C>
auto incAndAppendToFirst(C&& c)
{
using namespace Dune::Hybrid;
using namespace Dune::Indices;
forEach(integralRange(Dune::Hybrid::size(c)), [&](auto&& i) {
using namespace Dune::Hybrid;
using namespace Dune::Indices;
ifElse(equals(i, _0), [&](auto id) {
id(c[i]).append("+1");
}, [&](auto id) {
......@@ -60,10 +61,9 @@ template<class C, class I>
auto sumSubsequence(C&& c, I&& indices)
{
using namespace Dune::Hybrid;
using namespace Dune::Indices;
double result = 0;
forEach(indices, [&](auto i) {
result += elementAt(c, i);
result += Dune::Hybrid::elementAt(c, i);
});
return result;
}
......
......@@ -123,7 +123,7 @@ namespace Dune {
*
* \returns False if any of the executed tests failed, otherwise true.
*/
explicit operator const bool () const
explicit operator bool () const
{
return (failedChecks_==0);
}
......
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