1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Clang: Fix errors when building with clang on windows with C++20 enabled

This commit is contained in:
reuk 2020-06-08 10:02:52 +01:00
parent 3536cf969f
commit 1502a3a8f2
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ struct WaveShaper
//==============================================================================
// Although clang supports C++17, their standard library still has no invoke_result
// support. Remove the "|| JUCE_CLANG" once clang supports this properly!
#if (! JUCE_CXX17_IS_AVAILABLE) || JUCE_CLANG
#if (! JUCE_CXX17_IS_AVAILABLE) || (JUCE_CLANG && ! JUCE_WINDOWS)
template <typename Functor>
static WaveShaper<typename std::result_of<Functor>, Functor> CreateWaveShaper (Functor functionToUse) { return {functionToUse}; }
#else

View file

@ -64,7 +64,7 @@ bool PathFlatteningIterator::next()
{
float type;
if (stackPos == stackBase)
if (stackPos == stackBase.get())
{
if (source == path.data.end())
return false;
@ -129,7 +129,7 @@ bool PathFlatteningIterator::next()
{
++subPathIndex;
closesSubPath = stackPos == stackBase
closesSubPath = stackPos == stackBase.get()
&& source != path.data.end()
&& *source == Path::closeSubPathMarker
&& x2 == subPathCloseX