# IPlug2 clap branch doesn’t currently compile

**URL:** <https://iplug2.discourse.group/t/iplug2-clap-branch-doesn-t-currently-compile/701>\
**Category:** Uncategorized\
**Created:** [5 September 2022 23:11 UTC](https://iplug2.discourse.group/t/iplug2-clap-branch-doesn-t-currently-compile/701 "2022-09-05T23:11:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Matt](https://iplug2.discourse.group/u/Matt)\
**Post date:** [5 September 2022 23:11 UTC](https://iplug2.discourse.group/t/iplug2-clap-branch-doesn-t-currently-compile/701/1 "2022-09-05T23:11:50Z")

</div>

Hi,

IPlug2 clap branch doesn’t currently compile.  
(my setup: Windows 10, VS2019, everything up to date)

To make sure, I cloned a fresh IPlug2, switched to the clap branch, got all the necessary dependencies installed (CLAP\_HELPERS, CLAP\_SDK, and VST3\_SDK for good measure).  
I then duplicated IPlugEffect.  
VST3 works without problems.  
CLAP gives the following compiler error:

```auto
1>C:\Users\Heeb\Documents\iPlug2.x\IPlug\IPlugQueue.h(97,41): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'T'
1> with
1> [
1> T=iplug::IPlugCLAP::ParamToHost
1> ] (compiling source file ..\..\..\IPlug\CLAP\IPlugCLAP.cpp)
1>C:\Users\Heeb\Documents\iPlug2.x\IPlug\IPlugQueue.h(92,1): message : No constructor could take the source type, or constructor overload resolution was ambiguous (compiling source file ..\..\..\IPlug\CLAP\IPlugCLAP.cpp)
1>C:\Users\Heeb\Documents\iPlug2.x\IPlug\CLAP\IPlugCLAP.cpp(57): message : see reference to function template instantiation 'bool iplug::IPlugQueue<iplug::IPlugCLAP::ParamToHost>::PushFromArgs<iplug::IPlugCLAP::ParamToHost::Type,int,double>(iplug::IPlugCLAP::ParamToHost::Type,int,double)' being compiled
1>C:\Users\Heeb\Documents\iPlug2.x\IPlug\CLAP\IPlugCLAP.cpp(57): message : see reference to function template instantiation 'bool iplug::IPlugQueue<iplug::IPlugCLAP::ParamToHost>::PushFromArgs<iplug::IPlugCLAP::ParamToHost::Type,int,double>(iplug::IPlugCLAP::ParamToHost::Type,int,double)' being compiled
1>Done building project "Testing-clap.vcxproj" -- FAILED.

```

Switching back to a few days ago using:

`git reset --hard b6a2e2fba2b7d1752e406892f23f3b8e81f7f013 --`

makes it compile again, so something happened since then.

I like to stay very much up to date; is this something that’ll be fixed soon, or should I stay on b6a2e2fb… for now?

Many thanks,

Matthijs

---

<div class="post-metadata">

**Author:** ![pelennor](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@pelennor](https://iplug2.discourse.group/u/pelennor)\
**Post date:** [5 September 2022 23:23 UTC](https://iplug2.discourse.group/t/iplug2-clap-branch-doesn-t-currently-compile/701/2 "2022-09-05T23:23:58Z")

</div>

Hi,

Just wanted to confirm that I have the same issue on MacOS (tested the same way by IPlugEffect on CLAP and VST3), and that resetting back to the commit Matthijs mentioned fixes the issue.

---

<div class="post-metadata">

**Author:** ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)\
**Post date:** [6 September 2022 10:24 UTC](https://iplug2.discourse.group/t/iplug2-clap-branch-doesn-t-currently-compile/701/3 "2022-09-06T10:24:05Z")

</div>

I’ve reverted the commit that doesn’t compile for now.

FYI: CLAP support is bleeding edge and subject to breaking changes while we get it right - proceed with caution!

---

<div class="post-metadata">

**Author:** ![Matt](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Matt](https://iplug2.discourse.group/u/Matt)\
**Post date:** [6 September 2022 10:33 UTC](https://iplug2.discourse.group/t/iplug2-clap-branch-doesn-t-currently-compile/701/4 "2022-09-06T10:33:43Z")

</div>

Hi Oli,

> [@olilarkin](#):
>
> I’ve reverted the commit that doesn’t compile for now.

Many thanks, and also many thanks for all the hard work you guys are doing on it 🙂

> [@olilarkin](#):
>
> FYI: CLAP support is bleeding edge and subject to breaking changes while we get it right - proceed with caution!

Of course, well aware.  
I like living on that bleeding edge, firstly to be able to support the CLAP standard as soon as possible (the more plugins & DAWs that support it, the better), and secondly to help iPlug2 by finding & reporting bugs, etc.

🙂

---

<div class="post-metadata">

**Author:** ![FullBucket](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/fullbucket/32/10_2.png) [@FullBucket](https://iplug2.discourse.group/u/FullBucket)\
**Post date:** [8 September 2022 10:02 UTC](https://iplug2.discourse.group/t/iplug2-clap-branch-doesn-t-currently-compile/701/5 "2022-09-08T10:02:15Z")

</div>

I absolutely second that!!!
