# JUCE\_COMPILER\_SUPPORTS\_STATIC\_ASSERT won't correctly set up the static assertion

**URL:** <https://forum.juce.com/t/juce-compiler-supports-static-assert-wont-correctly-set-up-the-static-assertion/15856>\
**Category:** General JUCE discussion\
**Created:** [November 5, 2015, 12:45pm UTC](https://forum.juce.com/t/juce-compiler-supports-static-assert-wont-correctly-set-up-the-static-assertion/15856 "2015-11-05T12:45:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [November 5, 2015, 12:45pm UTC](https://forum.juce.com/t/juce-compiler-supports-static-assert-wont-correctly-set-up-the-static-assertion/15856/1 "2015-11-05T12:45:37Z")

</div>

**juce\_PlatformDefs.h** contains the custom static assert code, doesn't specify the second parameter to the C++&nbsp;static\_assert() (so you would only get a compile&nbsp;error) and is included before&nbsp; **juce\_CompilerSupport.h&nbsp;** in the **juce\_StandardHeader.h**.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 5, 2015, 4:17pm UTC](https://forum.juce.com/t/juce-compiler-supports-static-assert-wont-correctly-set-up-the-static-assertion/15856/2 "2015-11-05T16:17:50Z")

</div>

Thanks, we'll tidy that up!
