General: Default constructors and destructors where applicable

This commit is contained in:
Lioncash 2018-01-23 21:11:07 -05:00 committed by MerryMage
parent d1e4526e1c
commit 8ee854232c
4 changed files with 4 additions and 4 deletions

View file

@ -80,7 +80,7 @@ static_assert(sizeof(Value) <= 2 * sizeof(u64), "IR::Value should be kept small
template <Type type_>
class TypedValue final : public Value {
public:
TypedValue() : Value() {}
TypedValue() = default;
template <Type other_type, typename = std::enable_if_t<(other_type & type_) != Type::Void>>
/* implicit */ TypedValue(const TypedValue<other_type>& value) : Value(value) {