]> git.llucax.com Git - software/libev.git/commitdiff
loop_ref constructor don't throw anything if EV_MULTIPLICITY is false.
authorllucax <llucax>
Tue, 22 Jan 2008 17:56:29 +0000 (17:56 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Tue, 22 Jan 2008 18:18:05 +0000 (16:18 -0200)
ev++.h

diff --git a/ev++.h b/ev++.h
index 8b1f93605045d27df39542f03ecd6caad4aea6ee..8b4f88999037073aef50b743d2fb777900d9fb98 100644 (file)
--- a/ev++.h
+++ b/ev++.h
@@ -133,16 +133,18 @@ namespace ev {
   struct loop_ref
   {
 
   struct loop_ref
   {
 
-    loop_ref (EV_P) throw (bad_loop)
+    loop_ref (EV_P)
 #if EV_MULTIPLICITY
 #if EV_MULTIPLICITY
-    : EV_AX (EV_A)
-#endif
+      throw (bad_loop) : EV_AX (EV_A)
     {
     {
-#if EV_MULTIPLICITY
       if (!EV_AX)
         throw bad_loop ();
       if (!EV_AX)
         throw bad_loop ();
-#endif
     }
     }
+#else
+      throw ()
+    {
+    }
+#endif
 
     bool operator == (const loop_ref &other) const throw ()
     {
 
     bool operator == (const loop_ref &other) const throw ()
     {