Browse Source

Noexcept added.

main
offa 7 years ago
parent
commit
caf0b1a167
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/unique_resource.h

+ 1
- 1
include/unique_resource.h View File





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);
} }

Loading…
Cancel
Save