fix spelling (#2614)

This commit is contained in:
pfeatherstone 2022-06-28 11:55:34 +01:00 committed by GitHub
parent ec9a143e07
commit 7c32e1c18e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -289,7 +289,7 @@ namespace dlib
type_safe_union (
const type_safe_union& item
)
noexcept(are_nothrow_copy_construtible<Types...>::value)
noexcept(are_nothrow_copy_constructible<Types...>::value)
: type_safe_union()
{
item.apply_to_contents(assign_to{*this});
@ -298,7 +298,7 @@ namespace dlib
type_safe_union& operator=(
const type_safe_union& item
)
noexcept(are_nothrow_copy_construtible<Types...>::value &&
noexcept(are_nothrow_copy_constructible<Types...>::value &&
are_nothrow_copy_assignable<Types...>::value)
{
if (item.is_empty())
@ -311,7 +311,7 @@ namespace dlib
type_safe_union (
type_safe_union&& item
)
noexcept(are_nothrow_move_construtible<Types...>::value)
noexcept(are_nothrow_move_constructible<Types...>::value)
: type_safe_union()
{
item.apply_to_contents(move_to{*this});
@ -321,7 +321,7 @@ namespace dlib
type_safe_union& operator= (
type_safe_union&& item
)
noexcept(are_nothrow_move_construtible<Types...>::value &&
noexcept(are_nothrow_move_constructible<Types...>::value &&
are_nothrow_move_assignable<Types...>::value)
{
if (item.is_empty())

View File

@ -43,12 +43,12 @@ namespace dlib
// ---------------------------------------------------------------------
template <typename First, typename... Rest>
struct are_nothrow_move_construtible
struct are_nothrow_move_constructible
: std::integral_constant<bool, std::is_nothrow_move_constructible<First>::value &&
are_nothrow_move_construtible<Rest...>::value> {};
are_nothrow_move_constructible<Rest...>::value> {};
template <typename T>
struct are_nothrow_move_construtible<T> : std::is_nothrow_move_constructible<T> {};
struct are_nothrow_move_constructible<T> : std::is_nothrow_move_constructible<T> {};
// ---------------------------------------------------------------------
@ -63,12 +63,12 @@ namespace dlib
// ---------------------------------------------------------------------
template <typename First, typename... Rest>
struct are_nothrow_copy_construtible
struct are_nothrow_copy_constructible
: std::integral_constant<bool, std::is_nothrow_copy_constructible<First>::value &&
are_nothrow_copy_construtible<Rest...>::value> {};
are_nothrow_copy_constructible<Rest...>::value> {};
template <typename T>
struct are_nothrow_copy_construtible<T> : std::is_nothrow_copy_constructible<T> {};
struct are_nothrow_copy_constructible<T> : std::is_nothrow_copy_constructible<T> {};
// ---------------------------------------------------------------------
@ -126,4 +126,4 @@ namespace dlib
// ---------------------------------------------------------------------
}
#endif //DLIB_UTILITY_Hh_
#endif //DLIB_UTILITY_Hh_