Skip to content
Snippets Groups Projects
Commit ac6f432f authored by René Fritze's avatar René Fritze
Browse files

[ranges] apparently it's bad form to put begin/end specs into ns std::

http://stackoverflow.com/a/8165154
parent 54e238c7
No related branches found
No related tags found
No related merge requests found
......@@ -21,10 +21,10 @@
#endif
#include <dune/stuff/common/math.hh>
namespace std {
namespace Dune {
#if HAVE_DUNE_FEM
namespace Fem {
template <class DiscreteFunctionTraits>
auto begin(const Dune::DiscreteFunctionInterface<DiscreteFunctionTraits>& func) -> decltype(func.dbegin())
......@@ -50,9 +50,10 @@ auto end(Dune::DiscreteFunctionInterface<DiscreteFunctionTraits>& func) -> declt
return func.dend();
}
} // namespace Fem
#endif
} // namespace std
} // namespace Dune
namespace Dune {
namespace Stuff {
......
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