Move Lists defaulted constructors and assignment operators out of line.

This commit is contained in:
Mark Rowe 2016-06-01 11:29:32 -07:00
parent 65a748de0c
commit 2a75edde8e
2 changed files with 9 additions and 4 deletions

View File

@ -32,6 +32,11 @@ using namespace realm::_impl;
List::List() noexcept = default;
List::~List() = default;
List::List(const List&) = default;
List& List::operator=(const List&) = default;
List::List(List&&) = default;
List& List::operator=(List&&) = default;
List::List(std::shared_ptr<Realm> r, const ObjectSchema& s, LinkViewRef l) noexcept
: m_realm(std::move(r))
, m_object_schema(&s)

View File

@ -47,10 +47,10 @@ public:
List(std::shared_ptr<Realm> r, const ObjectSchema& s, LinkViewRef l) noexcept;
~List();
List(const List&) = default;
List& operator=(const List&) = default;
List(List&&) = default;
List& operator=(List&&) = default;
List(const List&);
List& operator=(const List&);
List(List&&);
List& operator=(List&&);
const std::shared_ptr<Realm>& get_realm() const { return m_realm; }
Query get_query() const;