pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.07k stars 2.11k forks source link

'nullptr_t' usage. #4465

Closed danny-mhlv closed 4 months ago

danny-mhlv commented 4 months ago

Describe the bug When trying to build POCO compiler throws an error: Unknown type name 'nullptr_t'; did you mean 'std::nullptr_t'?

Expected behavior POCO build is completed successfully.

Logs Build logs:

[build] ../myproject/thirdparty/poco/Foundation/include/Poco/Any.h:563:2: error: unknown type name 'nullptr_t'; did you mean 'std::nullptr_t'?
         poco_static_assert_ptr(ValueType);
         ^
[build] ../myproject/thirdparty/poco/Foundation/include/Poco/Bugcheck.h:173:20: note: expanded from macro 'poco_static_assert_ptr'
         std::is_same_v<T, nullptr_t> || \
                           ^
[build] /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12/bits/c++config.h:302:29: note: 'std::nullptr_t' declared here
   typedef decltype(nullptr)     nullptr_t;

Please add relevant environment information:

Additional context I'm not sure about the exact commit it broke like that, because I'm using POCO as a submodule and did not update it in a while.

danny-mhlv commented 4 months ago

Thank you for the quick resolution on this issue!