Fix compilation with latest core

This commit is contained in:
Thomas Goyne 2016-05-10 11:33:00 -07:00
parent 8d9e5db092
commit b42bf25c99
1 changed files with 3 additions and 1 deletions

View File

@ -414,7 +414,9 @@ void IndexSet::add_shifted_by(IndexSet const& shifted_by, IndexSet const& values
copy(old_it, old_end, std::back_inserter(builder)); copy(old_it, old_end, std::back_inserter(builder));
m_data = builder.finalize(); m_data = builder.finalize();
REALM_ASSERT_DEBUG((size_t)std::distance(as_indexes().begin(), as_indexes().end()) == expected); #ifdef REALM_DEBUG
REALM_ASSERT((size_t)std::distance(as_indexes().begin(), as_indexes().end()) == expected);
#endif
} }
void IndexSet::set(size_t len) void IndexSet::set(size_t len)