Skip to content

wasm: variant-typed controls fail to build (static_cast double → alternative) #146

Description

@jcelerier

binding/wasm/controls.hpp:388 does static_cast from double to each variant alternative, which fails to compile when an alternative is not numeric (e.g. std::string):

avnd/binding/wasm/controls.hpp:388:22: error: no matching conversion for static_cast from 'double' to 'Alt' (aka 'std::string')

Breaks the wasm build of Variant, Aggregate, AllPortsTypes.

Repro: emscripten build of the repo (emcmake cmake && ninja Variant_wasm), emsdk latest. Pre-existing on main (fails identically at 82c034b).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions