Browse Source

Type field added to the Wrapper class.

main
offa 7 years ago
parent
commit
400b71f3c3
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      include/detail/wrapper.h

+ 6
- 0
include/detail/wrapper.h View File

@@ -59,6 +59,9 @@ namespace sr::detail
}


using type = T;


private:

Wrapper(const T& value) noexcept(noexcept(T{value})) : m_value(value)
@@ -102,6 +105,9 @@ namespace sr::detail
}


using type = std::reference_wrapper<T>;


private:

std::reference_wrapper<T> m_value;

Loading…
Cancel
Save