Переглянути джерело

Missing forward added.

main
offa 7 роки тому
джерело
коміт
1678a03da6
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      include/detail/wrapper.h

+ 1
- 1
include/detail/wrapper.h Переглянути файл

public: public:


template<class TT, class G, std::enable_if_t<std::is_constructible_v<T, TT>, int> = 0> template<class TT, class G, std::enable_if_t<std::is_constructible_v<T, TT>, int> = 0>
explicit Wrapper(TT&& value, G&& g) noexcept(noexcept(Wrapper{value})) : Wrapper(value)
explicit Wrapper(TT&& value, G&& g) noexcept(noexcept(Wrapper{value})) : Wrapper(std::forward<TT>(value))
{ {
g.release(); g.release();
} }

Завантаження…
Відмінити
Зберегти