Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


On 24 Apr 2017, at 5:43 pm, Stephan Bergmann <sbergman@redhat.com> wrote:

On 04/24/2017 01:14 AM, Markus Mohrhard wrote:
The patch that you referenced is correct and the code compiles because header files are 
recursively included. So if any of the header files in the include chain contains an "#include 
<memory> std::unique_ptr will be available in that translation unit.

Another reason why a missing include of a standard library header may go unnoticed with some 
toolchains but not with others is that the standard allows C++ headers to include other C++ 
headers, so the relevant header may happen to be included indirectly through another header 
include.

So that might explain while it compiled fine on my Mac and the Mac buildbot, but not Windows or 
Linux... cheers!

Chris

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.