libktorrent: ISO C++17 conformance fix

upstream commit:
54aeec19ac

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-05-27 22:16:10 +03:00
parent 2c2b85af5e
commit e79b72de8f
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ namespace dht
}
std::pair<KBucket::Ptr, KBucket::Ptr> KBucket::split() throw (KBucket::UnableToSplit)
std::pair<KBucket::Ptr, KBucket::Ptr> KBucket::split() noexcept(false)
{
dht::Key m = dht::Key::mid(min_key, max_key);
if(m == min_key || m + 1 == max_key)

View file

@ -84,7 +84,7 @@ namespace dht
* @return A pair of KBucket's
* @throw UnableToSplit if something goes wrong
*/
std::pair<KBucket::Ptr, KBucket::Ptr> split() throw (UnableToSplit);
std::pair<KBucket::Ptr, KBucket::Ptr> split() noexcept(false);
/**
* Inserts an entry into the bucket.