fix for android compilation

This commit is contained in:
Ari Lazier 2016-05-13 18:45:42 -07:00
parent e438d8b586
commit df716d3da1
4 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@
#include "impl/collection_change_builder.hpp" #include "impl/collection_change_builder.hpp"
#include <realm/util/assert.hpp> #include <realm/util/assert.hpp>
#include <algorithm>
using namespace realm; using namespace realm;
using namespace realm::_impl; using namespace realm::_impl;

View File

@ -31,6 +31,7 @@
#include <realm/string_data.hpp> #include <realm/string_data.hpp>
#include <unordered_map> #include <unordered_map>
#include <algorithm>
using namespace realm; using namespace realm;
using namespace realm::_impl; using namespace realm::_impl;

View File

@ -24,6 +24,7 @@
#include <realm/group_shared.hpp> #include <realm/group_shared.hpp>
#include <realm/lang_bind_helper.hpp> #include <realm/lang_bind_helper.hpp>
#include <algorithm>
using namespace realm; using namespace realm;

View File

@ -411,7 +411,7 @@ Query Results::get_query() const
// The TableView has no associated query so create one with no conditions that is restricted // The TableView has no associated query so create one with no conditions that is restricted
// to the rows in the TableView. // to the rows in the TableView.
m_table_view.sync_if_needed(); m_table_view.sync_if_needed();
return Query(*m_table, std::make_unique<TableView>(m_table_view)); return Query(*m_table, (std::unique_ptr<TableViewBase>)std::make_unique<TableView>(m_table_view));
} }
case Mode::LinkView: case Mode::LinkView:
return m_table->where(m_link_view); return m_table->where(m_link_view);