Skip to content

Cannot build with Clang 21.1.8 #1840

@DaemonArcfour

Description

@DaemonArcfour
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/memory:80:
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/unique_ptr.h:90:16: error: invalid application of 'sizeof' to an incomplete type 'web::json::details::_Value'
   90 |         static_assert(sizeof(_Tp)>0,
      |                       ^~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/unique_ptr.h:398:4: note: in instantiation of member function 'std::default_delete<web::json::details::_Value>::operator()' requested here
  398 |           get_deleter()(std::move(__ptr));
      |           ^
/home/aleh/Projects/Nova/nova_desktop/build/Debug/_deps/cpprestsdk-src/Release/include/cpprest/json.h:742:14: note: in instantiation of member function 'std::unique_ptr<web::json::details::_Value>::~unique_ptr' requested here
  742 |     explicit value(std::unique_ptr<details::_Value> v) : m_value(std::move(v))
      |              ^
/home/aleh/Projects/Nova/nova_desktop/build/Debug/_deps/cpprestsdk-src/Release/include/cpprest/json.h:35:7: note: forward declaration of 'web::json::details::_Value'
   35 | class _Value;
      |       ^
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions