]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a horribly importable place.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 May 2001 11:29:01 +0000 (11:29 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 May 2001 11:29:01 +0000 (11:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@4627 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_update_flags.h

index bf1e73046c5b19569799637182ea38ccee199d54..5cbf01d3a0b1dc19044dd621928e5bfcf88086f9 100644 (file)
@@ -207,10 +207,11 @@ enum UpdateFlags
 
 
 inline
-UpdateFlags&
+UpdateFlags &
 operator |= (UpdateFlags& f1, const UpdateFlags& f2)
 {
-  return ((UpdateFlags) (((int)f1) |= f2));
+  f1 = static_cast<UpdateFlags> (f1 | f2);
+  return f1;
 }
 
 
@@ -224,10 +225,11 @@ operator | (const UpdateFlags& f1, const UpdateFlags& f2)
 }
 
 inline
-UpdateFlags&
+UpdateFlags &
 operator &= (UpdateFlags& f1, const UpdateFlags& f2)
 {
-  return ((UpdateFlags) (((int)f1) &= f2));
+  f1 = static_cast<UpdateFlags> (f1 & f2);
+  return f1;
 }
 
 

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.