mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-23 16:50:02 +00:00
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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user