mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd: Minor cleanup.
This commit is contained in:
parent
21d4cbf1ad
commit
6bc6d9f8a1
4 changed files with 9 additions and 9 deletions
|
@ -181,7 +181,7 @@ struct ircd::m::id::group
|
|||
group() = default;
|
||||
};
|
||||
|
||||
/// Group ID (EXPERIMENTAL)
|
||||
/// Origin ID (EXPERIMENTAL)
|
||||
///
|
||||
struct ircd::m::id::origin
|
||||
:ircd::m::id
|
||||
|
|
|
@ -85,10 +85,6 @@ struct NAME \
|
|||
// Debug sizeof structure at compile time
|
||||
//
|
||||
|
||||
/// Internal use only
|
||||
template<size_t SIZE>
|
||||
struct _TEST_SIZEOF_;
|
||||
|
||||
/// Output the sizeof a structure at compile time.
|
||||
/// This stops the compiler with an error (good) containing the size of the target
|
||||
/// in the message.
|
||||
|
@ -98,6 +94,10 @@ struct _TEST_SIZEOF_;
|
|||
#define IRCD_TEST_SIZEOF(name) \
|
||||
ircd::util::_TEST_SIZEOF_<sizeof(name)> _test_;
|
||||
|
||||
/// Internal use only
|
||||
template<size_t SIZE>
|
||||
struct _TEST_SIZEOF_;
|
||||
|
||||
//
|
||||
// Test if type is forward declared or complete
|
||||
//
|
||||
|
|
|
@ -39,7 +39,7 @@ struct ircd::util::unwind
|
|||
const std::function<void ()> func;
|
||||
|
||||
template<class F>
|
||||
unwind(F &&func)
|
||||
unwind(F&& func)
|
||||
:func{std::forward<F>(func)}
|
||||
{}
|
||||
|
||||
|
@ -61,7 +61,7 @@ struct ircd::util::unwind::nominal
|
|||
const std::function<void ()> func;
|
||||
|
||||
template<class F>
|
||||
nominal(F &&func)
|
||||
nominal(F&& func)
|
||||
:func{std::forward<F>(func)}
|
||||
{}
|
||||
|
||||
|
@ -86,7 +86,7 @@ struct ircd::util::unwind::exceptional
|
|||
const std::function<void ()> func;
|
||||
|
||||
template<class F>
|
||||
exceptional(F &&func)
|
||||
exceptional(F&& func)
|
||||
:func{std::forward<F>(func)}
|
||||
{}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace ircd::server
|
|||
1
|
||||
};
|
||||
|
||||
// Maximum number of requests "in flight" in the pipe at at time
|
||||
// Maximum number of requests "in flight" at a time in one pipe.
|
||||
const size_t TAG_COMMIT_MAX_DEFAULT
|
||||
{
|
||||
2
|
||||
|
|
Loading…
Reference in a new issue