Browse Source

Comparison simplified.

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

+ 1
- 1
include/unique_resource.h View File

{ {
unique_resource<std::decay_t<R>, std::decay_t<D>> ur{std::forward<R>(r), std::forward<D>(d)}; unique_resource<std::decay_t<R>, std::decay_t<D>> ur{std::forward<R>(r), std::forward<D>(d)};


if( bool(r == invalid) == true )
if( bool(r == invalid) )
{ {
ur.release(); ur.release();
} }

Loading…
Cancel
Save