Ver código fonte

Noexcept added.

main
offa 7 anos atrás
pai
commit
caf0b1a167
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      include/unique_resource.h

+ 1
- 1
include/unique_resource.h Ver arquivo





template<class T, class U = std::conditional_t<std::is_nothrow_move_constructible<T>::value, T&&, const T&>> template<class T, class U = std::conditional_t<std::is_nothrow_move_constructible<T>::value, T&&, const T&>>
constexpr U forward_if_nothrow_move_constructible(T&& value)
constexpr U forward_if_nothrow_move_constructible(T&& value) noexcept
{ {
return std::forward<T>(value); return std::forward<T>(value);
} }

Carregando…
Cancelar
Salvar