summaryrefslogtreecommitdiff
path: root/ev++.h
diff options
context:
space:
mode:
Diffstat (limited to 'ev++.h')
-rw-r--r--ev++.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/ev++.h b/ev++.h
index 8b1f936..8b4f889 100644
--- a/ev++.h
+++ b/ev++.h
@@ -133,16 +133,18 @@ namespace ev {
struct loop_ref
{
- loop_ref (EV_P) throw (bad_loop)
+ loop_ref (EV_P)
#if EV_MULTIPLICITY
- : EV_AX (EV_A)
-#endif
+ throw (bad_loop) : EV_AX (EV_A)
{
-#if EV_MULTIPLICITY
if (!EV_AX)
throw bad_loop ();
-#endif
}
+#else
+ throw ()
+ {
+ }
+#endif
bool operator == (const loop_ref &other) const throw ()
{