Skip to content

rerun_cpp_sdk does not compile on windows #9898

@alokpr

Description

@alokpr

Multiple compiler errors like:

C:\re_cwd\third-party\rerun_cpp_sdk\src\rerun\loggable.hpp(18): error C2338: static_assert failed: 'Loggable is not implemented for this type. It is implemented for all built-in datatypes and components. To check ahead of template instantiation whether a type is loggable, use `is_loggable<T>`'
C:\re_cwd\third-party\rerun_cpp_sdk\src\rerun\loggable.hpp(18): note: the template instantiation context (the oldest one first) is
C:\re_cwd\third-party\rerun_cpp_sdk\src\rerun\archetypes\../component_batch.hpp(68): note: see reference to class template instantiation 'rerun::Loggable<T>' being compiled
        with
        [
            T=rerun::Collection<rerun::components::Blob>
        ]

It seems like function overloading for collection and component is not working as expected on windows:

template <typename T>
static Result<ComponentBatch> from_loggable(
            const rerun::Collection<T>& components,
            const ComponentDescriptor& descriptor = rerun::Loggable<T>::Descriptor
) 

template <typename T>
static Result<ComponentBatch> from_loggable(
            const T& component,
            const ComponentDescriptor& descriptor = rerun::Loggable<T>::Descriptor
) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    sdk-cppC/C++ API specific💣 crashcrash, deadlock/freeze, do-no-start🪟 windowsProblems specific to the Windows OS🪳 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions