VirtualAnalog icon indicating copy to clipboard operation
VirtualAnalog copied to clipboard

Build fail "use of deleted function"

Open KottV opened this issue 4 years ago • 5 comments

Hi Roland,

With recent updates https://github.com/FigBug/VirtualAnalog/commit/51fa18c03ca393f5d6da9208955506a2d62aa7f8 there compile errors under Linux g++ 9.3.1:

 CONFIG=Release make
Compiling PluginEditor.cpp
In file included from ../../Source/PluginEditor.cpp:2:
../../Source/PluginEditor.h: In constructor ‘Editor::Editor(VirtualAnalogAudioProcessor&)’:
../../Source/PluginEditor.h:12:24: error: use of deleted function ‘OscillatorBox::OscillatorBox(OscillatorBox&&)’
   12 |         : proc ( proc_ )
      |                        ^
In file included from ../../Source/PluginEditor.h:5,
                 from ../../Source/PluginEditor.cpp:2:
../../Source/Panels.h:8:7: note: ‘OscillatorBox::OscillatorBox(OscillatorBox&&)’ is implicitly deleted because the default definition would be ill-formed:
    8 | class OscillatorBox : public gin::ParamBox
      |       ^~~~~~~~~~~~~
../../Source/Panels.h:8:7: error: use of deleted function ‘gin::ParamBox::ParamBox(gin::ParamBox&&)’
In file included from ../../../modules/gin/modules/gin_plugin/gin_plugin.h:87,
                 from ../../JuceLibraryCode/JuceHeader.h:19,
                 from ../../Source/PluginProcessor.h:3,
                 from ../../Source/PluginEditor.cpp:1:
../../../modules/gin/modules/gin_plugin/components/gin_parambox.h:45:7: note: ‘gin::ParamBox::ParamBox(gin::ParamBox&&)’ is implicitly deleted because the default definition would be ill-formed:
   45 | class ParamBox : public MultiParamComponent
      |       ^~~~~~~~

and so on...

KottV avatar Jun 02 '20 03:06 KottV

Yeah, not sure what the deal is. Why gcc hates it, but clang and VC++ are ok with it.

The release branch is currently building.

FigBug avatar Jun 02 '20 03:06 FigBug

You should use release branch an, I'm currently redoing the UI and master branch is pretty broken.

FigBug avatar Jun 02 '20 04:06 FigBug

Yes I'll use release branch.

KottV avatar Jun 02 '20 04:06 KottV

There's still a bunch of error:use of deleted function messages on the master. Is this going to be resolved soon?

muziker avatar Dec 18 '20 04:12 muziker

Sorry, too busy with work. Haven't had time to work on this in months.

FigBug avatar Dec 18 '20 18:12 FigBug