Commit e57a183c authored by Dominik Charousset's avatar Dominik Charousset

adapted to new buffer interface

parent 8633f30d
......@@ -563,7 +563,7 @@ class buffer_type_info_impl : public uniform_type_info {
auto& rhs = deref(vrhs);
return (lhs.empty() && rhs.empty())
|| ( lhs.size() == rhs.size()
&& std::equal(lhs.begin(), lhs.end(), rhs.begin()));
&& memcmp(lhs.data(), rhs.data(), lhs.size()) == 0);
}
void* new_instance(const void* ptr) const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment