From 0c1970af0f02d3901c5341bcfbc58423aeeb1ee6 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 19 Feb 2020 09:28:27 -0800 Subject: [PATCH] ircd::m::feds: Add default inline construction to reassert noexcept. --- include/ircd/m/feds.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ircd/m/feds.h b/include/ircd/m/feds.h index 66689caaf..59cf26ceb 100644 --- a/include/ircd/m/feds.h +++ b/include/ircd/m/feds.h @@ -142,6 +142,10 @@ struct ircd::m::feds::opts /// default, and loopback queries are made for result completeness in the /// typical use case. bool exclude_myself {false}; + + // Default construction is inline by member; this is defined to impose + // noexcept over `milliseconds timeout` which we guarantee won't throw. + opts() noexcept {} }; inline