mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02:00
ircd: ISO C++ requires template on destructor names out-of-line.
This commit is contained in:
parent
f4979e42f9
commit
e3e3bd7b09
13 changed files with 24 additions and 25 deletions
|
@ -98,7 +98,7 @@ ircd::buffer::unique_buffer<buffer_type>::operator=(unique_buffer &&other)
|
|||
|
||||
template<class buffer_type>
|
||||
inline
|
||||
ircd::buffer::unique_buffer<buffer_type>::~unique_buffer()
|
||||
ircd::buffer::unique_buffer<buffer_type>::~unique_buffer<buffer_type>()
|
||||
noexcept
|
||||
{
|
||||
const auto ptr(std::get<0>(*this));
|
||||
|
|
|
@ -45,7 +45,7 @@ ircd::ctx::concurrent<value>::concurrent(pool &p,
|
|||
{}
|
||||
|
||||
template<class value>
|
||||
ircd::ctx::concurrent<value>::~concurrent()
|
||||
ircd::ctx::concurrent<value>::~concurrent<value>()
|
||||
noexcept
|
||||
{
|
||||
const uninterruptible::nothrow ui;
|
||||
|
|
|
@ -98,7 +98,7 @@ struct ircd::ctx::scoped_future
|
|||
|
||||
template<class... T>
|
||||
inline
|
||||
ircd::ctx::scoped_future<T...>::~scoped_future()
|
||||
ircd::ctx::scoped_future<T...>::~scoped_future<T...>()
|
||||
noexcept
|
||||
{
|
||||
if(std::uncaught_exceptions() || !this->valid())
|
||||
|
|
|
@ -62,7 +62,7 @@ ircd::ctx::queue<T, A>::queue(A&& alloc)
|
|||
|
||||
template<class T,
|
||||
class A>
|
||||
ircd::ctx::queue<T, A>::~queue()
|
||||
ircd::ctx::queue<T, A>::~queue<T, A>()
|
||||
noexcept
|
||||
{
|
||||
assert(q.empty());
|
||||
|
|
|
@ -41,7 +41,7 @@ ircd::ctx::unlock_guard<lockable>::unlock_guard(lockable &l)
|
|||
}
|
||||
|
||||
template<class lockable>
|
||||
ircd::ctx::unlock_guard<lockable>::~unlock_guard()
|
||||
ircd::ctx::unlock_guard<lockable>::~unlock_guard<lockable>()
|
||||
noexcept
|
||||
{
|
||||
l.lock();
|
||||
|
|
|
@ -120,7 +120,7 @@ noexcept
|
|||
|
||||
template<class mutex>
|
||||
inline
|
||||
ircd::ctx::upgrade_lock<mutex>::~upgrade_lock()
|
||||
ircd::ctx::upgrade_lock<mutex>::~upgrade_lock<mutex>()
|
||||
noexcept
|
||||
{
|
||||
if(owns_lock())
|
||||
|
|
|
@ -13,8 +13,12 @@
|
|||
|
||||
namespace ircd::ctx
|
||||
{
|
||||
template<class T, class mutex = mutex> class view;
|
||||
template<class T> using shared_view = view<T, shared_mutex>;
|
||||
template<class T,
|
||||
class mutex = ircd::ctx::mutex>
|
||||
class view;
|
||||
|
||||
template<class T>
|
||||
using shared_view = view<T, ircd::ctx::shared_mutex>;
|
||||
}
|
||||
|
||||
/// Device for a context to share data on its stack with others while yielding
|
||||
|
@ -53,17 +57,12 @@ class ircd::ctx::view
|
|||
void operator()(T &);
|
||||
|
||||
view() = default;
|
||||
~view() noexcept;
|
||||
};
|
||||
|
||||
template<class T,
|
||||
class mutex>
|
||||
ircd::ctx::view<T, mutex>::~view()
|
||||
noexcept
|
||||
{
|
||||
~view() noexcept
|
||||
{
|
||||
assert(!waiting);
|
||||
assert(!wanting);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
template<class T,
|
||||
class mutex>
|
||||
|
@ -164,7 +163,7 @@ ircd::ctx::view<T, mutex>::wait_until(lock &l,
|
|||
|
||||
template<class T,
|
||||
class mutex>
|
||||
bool
|
||||
inline bool
|
||||
ircd::ctx::view<T, mutex>::ready()
|
||||
const
|
||||
{
|
||||
|
|
|
@ -74,7 +74,7 @@ inline //TODO: ???
|
|||
extern inline
|
||||
__attribute__((always_inline, gnu_inline, artificial))
|
||||
#endif
|
||||
ircd::prof::scope_cycles<fenced>::~scope_cycles()
|
||||
ircd::prof::scope_cycles<fenced>::~scope_cycles<fenced>()
|
||||
noexcept
|
||||
{
|
||||
if constexpr(fenced)
|
||||
|
|
|
@ -266,7 +266,7 @@ boost::spirit::karma::detail::enable_buffering<ircd::spirit::sink_type>::enable_
|
|||
}
|
||||
|
||||
inline
|
||||
boost::spirit::karma::detail::enable_buffering<ircd::spirit::sink_type>::~enable_buffering()
|
||||
boost::spirit::karma::detail::enable_buffering<ircd::spirit::sink_type>::~enable_buffering<ircd::spirit::sink_type>()
|
||||
noexcept
|
||||
{
|
||||
assert(ircd::spirit::generator_state == &state);
|
||||
|
|
|
@ -121,7 +121,7 @@ ircd::util::instance_list<T>::operator=(const instance_list &other)
|
|||
}
|
||||
|
||||
template<class T>
|
||||
ircd::util::instance_list<T>::~instance_list()
|
||||
ircd::util::instance_list<T>::~instance_list<T>()
|
||||
noexcept
|
||||
{
|
||||
assert(it != end(list));
|
||||
|
|
|
@ -120,7 +120,7 @@ ircd::util::instance_multimap<K, T, C>::operator=(const instance_multimap &other
|
|||
template<class K,
|
||||
class T,
|
||||
class C>
|
||||
ircd::util::instance_multimap<K, T, C>::~instance_multimap()
|
||||
ircd::util::instance_multimap<K, T, C>::~instance_multimap<K, T, C>()
|
||||
noexcept
|
||||
{
|
||||
if(it != end(map))
|
||||
|
|
|
@ -43,7 +43,7 @@ ircd::util::scope_count<T>::scope_count(T &count,
|
|||
}
|
||||
|
||||
template<class T>
|
||||
ircd::util::scope_count<T>::~scope_count()
|
||||
ircd::util::scope_count<T>::~scope_count<T>()
|
||||
noexcept
|
||||
{
|
||||
assert(count);
|
||||
|
|
|
@ -62,7 +62,7 @@ ircd::util::scope_restore<T>::scope_restore(T &restore,
|
|||
}
|
||||
|
||||
template<class T>
|
||||
ircd::util::scope_restore<T>::~scope_restore()
|
||||
ircd::util::scope_restore<T>::~scope_restore<T>()
|
||||
noexcept
|
||||
{
|
||||
assert(restore);
|
||||
|
|
Loading…
Reference in a new issue