diff options
author | llucax <llucax> | 2008-01-22 17:56:29 +0000 |
---|---|---|
committer | llucax <llucax> | 2008-01-22 17:56:29 +0000 |
commit | 4b6df54f14d657406f5e408e0880da60b2d22855 (patch) | |
tree | 299d719c2513e4306c3ab6eefe04bda0fb6232cc /ev++.h | |
parent | e60c6a1f1410a247ddf28dabf19e4b84a5afc34a (diff) |
loop_ref constructor don't throw anything if EV_MULTIPLICITY is false.
Diffstat (limited to 'ev++.h')
-rw-r--r-- | ev++.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 () { |