From: llucax Date: Tue, 22 Jan 2008 17:56:29 +0000 (+0000) Subject: loop_ref constructor don't throw anything if EV_MULTIPLICITY is false. X-Git-Url: https://git.llucax.com/software/libev.git/commitdiff_plain/7a5cc2e0a749c9e9f9b2aaa2018f75eaaf46958c?ds=inline loop_ref constructor don't throw anything if EV_MULTIPLICITY is false. --- 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 () {