Workaround compilation error happening in reflection generation

The latest version of libstdc++ in Arch Linux at this point (13.1.1)
pulls in the following code via `#iterator <iterator>` when
`-std=gnu++2b` is used:

```
    template<forward_iterator _It>
      struct __basic_const_iterator_iter_cat<_It>
{ using iterator_category =
iterator_traits<_It>::iterator_category; };
```

The latest version of Clang in Arch Linux at this point (15.0.7)
complains about a missing `typename` here. To avoid this error
from preventing the build, this changes enables error resilience
for the reflection generation to turn this error into a warning.
This commit is contained in:
Martchus 2023-05-28 21:05:29 +02:00
parent 72d449977f
commit cf6b90407e
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,8 @@ add_reflection_generator_invocation(
JSON_VISIBILITY
${META_PROJECT_VARNAME}_EXPORT
BINARY_VISBILITY
${META_PROJECT_VARNAME}_EXPORT)
${META_PROJECT_VARNAME}_EXPORT
ERROR_RESILIENT)
# disable Boost's support for concepts to avoid compile errors
# /usr/include/boost/asio/async_result.hpp:70:20: error: concept cannot have associated constraints