Browse Source

Handling of void-Types added as in P0052R5.

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

+ 1
- 1
include/unique_resource.h View File

@@ -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();

Loading…
Cancel
Save