mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
fix spelling (#2614)
This commit is contained in:
parent
ec9a143e07
commit
7c32e1c18e
@ -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())
|
||||
|
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user