Xcode 9 build error


#1

Xcode 9 shows an error when building a plugin with Juce 5.1.2

juce_core/memory/juce_Atomic.h:57
Called object type 'bool' is not a function or function pointer

The code is:

static_assert (std::atomic<Type>::is_always_lock_free(),
                    "This class can only be used for lock-free types");

Works fine when I remove parenthesis:

static_assert (std::atomic<Type>::is_always_lock_free,
                    "This class can only be used for lock-free types");

#2

OK, thanks! We’ll sort that out.


#3

thanks for the workaround!