commit | 56cb5f7da1025f6db869e840ed34d3b98b9ab899 | [log] [tgz] |
---|---|---|
author | Jose Dapena Paz <jose.dapena@lge.com> | Tue May 29 16:04:14 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue May 29 16:04:14 2018 |
tree | 3c52fe4d0b852eb0c481c9c4b6a503485a9fddd9 | |
parent | 57baa774bfecb02345e30c95ad8a6ddc3e6a0092 [diff] |
GCC: do not std::move unique ptr of forward declared UrlIndex GCC fails to resolve the size of UrlIndex, needed for moving a std::unique_ptr of UrlIndex. This is because moved is done on a forward-declared UrlIndex. To avoid the problem, move the call to std::move to the .cc file so the full declaration is available. Build error: ../../buildtools/third_party/libc++/trunk/include/memory: In instantiation of ‘void std::__1::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = bookmarks::UrlIndex]’: ../../buildtools/third_party/libc++/trunk/include/memory:2634:22: required from ‘void std::__1::unique_ptr<_Tp, _Dp>::reset(std::__1::unique_ptr<_Tp, _Dp>::pointer) [with _Tp = bookmarks::UrlIndex; _Dp = std::__1::default_delete<bookmarks::UrlIndex>; std::__1::unique_ptr<_Tp, _Dp>::pointer = bookmarks::UrlIndex*]’ ../../buildtools/third_party/libc++/trunk/include/memory:2588:24: required from ‘std::__1::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = bookmarks::UrlIndex; _Dp = std::__1::default_delete<bookmarks::UrlIndex>]’ ../../components/bookmarks/browser/bookmark_storage.h:107:76: required from here ../../buildtools/third_party/libc++/trunk/include/memory:2317:25: error: invalid application of ‘sizeof’ to incomplete type ‘bookmarks::UrlIndex’ static_assert(sizeof(_Tp) > 0, Bug: 819294 Change-Id: I793a807c28e797aaa2e31d9c8b7e09fb6ca6b9e7 Reviewed-on: https://chromium-review.googlesource.com/1071648 Commit-Queue: Scott Violet <sky@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#562446}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .