simpler this way. also this prevent the compiler from trying to
convert a random value into SnapshotNamespace just because it
has a templated constructor when it tries to lookup a candidate
of operator<<(ostream&, Random value).
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
UnknownSnapshotNamespace> SnapshotNamespaceVariant;
struct SnapshotNamespace : public SnapshotNamespaceVariant {
- SnapshotNamespace() {
- }
-
- template <typename T>
- SnapshotNamespace(T&& t) : SnapshotNamespaceVariant(std::forward<T>(t)) {
- }
+ using SnapshotNamespaceVariant::SnapshotNamespaceVariant;
void encode(ceph::buffer::list& bl) const;
void decode(ceph::buffer::list::const_iterator& it);