Skip to content
Snippets Groups Projects
Commit 5213992f authored by Simon Praetorius's avatar Simon Praetorius
Browse files

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

parent d5ab5050
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