]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make IndexSet Epetra_Map constr explicit 1208/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 28 Jul 2015 03:04:20 +0000 (23:04 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 28 Jul 2015 03:04:20 +0000 (23:04 -0400)
The new constructor IndexSet(const Epetra_Map &map) was not marked explicit
and caused ambiguous type conversions.

include/deal.II/base/index_set.h

index 7ac2be254cd0361094a9b1b73bc67f52a67ce9fc..6e3560493c454075f8e36475c834c2e7bbbb8372 100644 (file)
@@ -109,7 +109,7 @@ public:
   /**
    * Constructor from a trilinos Epetra_Map.
    */
-  IndexSet(const Epetra_Map &map);
+  explicit IndexSet(const Epetra_Map &map);
 #endif
 
   /**

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.