Hey Christoph, when trying to compile your script here, I get:
> Create files
> Sorting include dependencies
> Copying third party files
> Compiling dll plugin
Re-saving file: C:\Users\avern\Desktop\blah\DspNetworks\Binaries\AutogeneratedProject.jucer
Finished saving: Visual Studio 2022
Finished saving: Xcode (macOS)
Finished saving: Linux Makefile
Compiling 64bit blah ...
MSBuild version 17.10.4+10fbfbf2e for .NET Framework
Main.cpp
include_hi_dsp_library_01.cpp
include_hi_dsp_library_02.cpp
include_hi_tools_01.cpp
include_hi_tools_02.cpp
include_hi_tools_03.cpp
include_juce_audio_formats.cpp
include_juce_core.cpp
include_juce_data_structures.cpp
include_juce_dsp.cpp
include_juce_events.cpp
include_juce_graphics.cpp
!C:\Users\avern\Desktop\blah\DspNetworks\ThirdParty\data_node.h(75,4): error C2593: 'operator []' is ambiguous [C:\Users\avern\Desktop\blah\DspNetworks\Binaries\Builds\VisualStudio2022\blah_DynamicLibrary.vcxproj]
!C:\Users\avern\Desktop\blah\DspNetworks\ThirdParty\data_node.h(76,4): error C2593: 'operator []' is ambiguous [C:\Users\avern\Desktop\blah\DspNetworks\Binaries\Builds\VisualStudio2022\blah_DynamicLibrary.vcxproj]
!C:\Users\avern\Desktop\blah\DspNetworks\ThirdParty\data_node.h(77,4): error C2593: 'operator []' is ambiguous [C:\Users\avern\Desktop\blah\DspNetworks\Binaries\Builds\VisualStudio2022\blah_DynamicLibrary.vcxproj]
!C:\Users\avern\Desktop\blah\DspNetworks\ThirdParty\data_node.h(78,4): error C2593: 'operator []' is ambiguous [C:\Users\avern\Desktop\blah\DspNetworks\Binaries\Builds\VisualStudio2022\blah_DynamicLibrary.vcxproj]
!C:\Users\avern\Desktop\blah\DspNetworks\ThirdParty\data_node.h(81,4): error C2593: 'operator []' is ambiguous [C:\Users\avern\Desktop\blah\DspNetworks\Binaries\Builds\VisualStudio2022\blah_DynamicLibrary.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\bit(11): warning STL4038: The contents of <bit> are available only with C++20 or later. [C:\Users\avern\Desktop\blah\DspNetworks\Binaries\Builds\VisualStudio2022\blah_DynamicLibrary.vcxproj]
The lines causing this error are:
hise::JSONObject obj;
// write the values into the JSON object
obj["magnitude"] = magnitude;
obj["RMS"] = rms;
obj["length"] = length;
obj["numChannels"] = channels;
// just attach the current knob position so you know it's working.
obj["knobValue"] = value;
I have just update to the latest develop. This SHA:
03c420c1d12f7a4457a8b497a6b78bc49d250e85
Explicitly casting like this did result in the compile working:
// write the values into the JSON object
obj[String("magnitude")] = magnitude;
obj[String("RMS")] = rms;
obj[String("length")] = length;
obj[String("numChannels")] = channels;
// just attach the current knob position so you know it's working.
obj[String("knobValue")] = value;