Browse Source

loop_ref constructor don't throw anything if EV_MULTIPLICITY is false.

master
llucax 14 years ago
parent
commit
6a0dd54043
  1. 12
      ev++.h

12
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 ()
{

Loading…
Cancel
Save