| 66 | |
| 67 | template <typename T> |
| 68 | struct explicit_type : public T |
| 69 | { |
| 70 | template <typename...Args, |
| 71 | typename = typename std::enable_if<std::is_constructible<T,Args...>::value>::type> |
| 72 | explicit explicit_type(Args&&...args) |
| 73 | : T(std::forward<Args>(args)...) |
| 74 | { |
| 75 | } |
| 76 | |
| 77 | explicit explicit_type() = default; |
| 78 | explicit explicit_type(const explicit_type&) = default; |
| 79 | explicit explicit_type(explicit_type&&) = default; |
| 80 | |
| 81 | auto operator=(const explicit_type&) -> explicit_type& = default; |
| 82 | auto operator=(explicit_type&&) -> explicit_type& = default; |
| 83 | }; |
| 84 | |
| 85 | template <typename T> |
| 86 | struct move_only : public T |
nothing calls this directly
no outgoing calls
no test coverage detected