]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make IndexSet Epetra_Map constr explicit 1210/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 13:39:02 +0000 (09:39 -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 10a260d377b181f399abcbe44a02b6fd520fda30..6a49bda91bc914c14ef2a2634b579ea644b995a0 100644 (file)
@@ -93,7 +93,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.