Ver código fonte

Handling of void-Types added as in P0052R5.

main
offa 7 anos atrás
pai
commit
73110f9ed2
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

@@ -173,7 +173,7 @@ namespace sr
}

template<class RR = R,
std::enable_if_t<std::is_pointer<RR>::value, int> = 0>
std::enable_if_t<( std::is_pointer<RR>::value && !std::is_void<std::remove_pointer_t<RR>>::value), int> = 0>
std::add_lvalue_reference_t<std::remove_pointer_t<RR>> operator*() const noexcept
{
return *get();

Carregando…
Cancelar
Salvar