enki / libev

Full-featured high-performance event loop loosely modelled after libevent
http://software.schmorp.de/pkg/libev
Other
1.64k stars 446 forks source link

The library is no longer compatible with C++17 #15

Open jodier opened 1 year ago

jodier commented 1 year ago

Dear libev experts,

The library is no longer compatible with C++17. I get: ../include/ev++.h:355:46: error: ISO C++17 does not allow dynamic exception specifications 355 | dynamic_loop (unsigned int flags = AUTO) throw (bad_loop) | ^~~~~ ../include/ev++.h:379:46: error: ISO C++17 does not allow dynamic exception specifications 379 | default_loop (unsigned int flags = AUTO) throw (bad_loop) | ^~~~~

Best regards, jodier

glingi commented 8 months ago

Hi.

Please refer to this version of libev. libev

This is commit log of ev++.h. throw () was replaced with EV_NOEXCEPT. commit log