Parcourir la source

Noexcepts fixed.

main
offa il y a 7 ans
Parent
révision
b30ba27498
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      include/unique_resource.h

+ 2
- 2
include/unique_resource.h Voir le fichier

@@ -75,12 +75,12 @@ namespace sr
return m_value;
}

void reset(T&& newValue) noexcept(noexcept(m_value = move_assign_if_noexcept(newValue)))
void reset(T&& newValue) noexcept(std::is_nothrow_assignable<T, decltype(move_assign_if_noexcept(newValue))>::value)
{
m_value = move_assign_if_noexcept(newValue);
}

void reset(const T& newValue) noexcept(noexcept(m_value = newValue))
void reset(const T& newValue) noexcept(std::is_nothrow_assignable<T, const T&>::value)
{
m_value = newValue;
}

Chargement…
Annuler
Enregistrer