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

fix dune_static_assert statement

[[Imported from SVN: r944]]
parent 0621f55b
No related branches found
No related tags found
No related merge requests found
......@@ -1308,8 +1308,8 @@ namespace Dune {
inline void RemoteIndexListModifier<T,mode>::insert(const RemoteIndex& index) throw(InvalidPosition)
{
dune_static_assert(!mode,"Not allowed if the mode indicates that new indices"
<< "might be added to the underlying index set. Use "
<< "insert(const RemoteIndex&, const GlobalIndex&) instead");
"might be added to the underlying index set. Use "
"insert(const RemoteIndex&, const GlobalIndex&) instead");
#ifdef DUNE_ISTL_WITH_CHECKING
if(!first_ && index.localIndexPair().global()<last_)
......@@ -1331,8 +1331,8 @@ namespace Dune {
inline void RemoteIndexListModifier<T,mode>::insert(const RemoteIndex& index, const GlobalIndex& global) throw(InvalidPosition)
{
dune_static_assert(mode,"Not allowed if the mode indicates that no new indices"
<< "might be added to the underlying index set. Use "
<< "insert(const RemoteIndex&) instead");
"might be added to the underlying index set. Use "
"insert(const RemoteIndex&) instead");
#ifdef DUNE_ISTL_WITH_CHECKING
if(!first_ && global<last_)
DUNE_THROW(InvalidPosition, "Modification of remote indices have to occur with ascending global index.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment