Use flatbuffer unique_ptr instead of std's.

Stlport does not have std unique_ptr, so using the one provided by
flatbuffers.
Also fixing a problem with the flatbuffer unique_ptr, and a test.
This commit is contained in:
Anthony
2017-10-13 16:21:34 -07:00
parent a0e5d78353
commit b0fd1a8c66
3 changed files with 3 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ inline void vector_emplace_back(std::vector<T> *vector, V &&data) {
return *this;
}
const T& operator*() const { return ptr_; }
const T& operator*() const { return *ptr_; }
T* operator->() const { return ptr_; }
T* get() const noexcept { return ptr_; }
explicit operator bool() const { return ptr_ != nullptr; }