Skip to content

Commit

Permalink
Fix problem defining arrays in class declarations (#2776)
Browse files Browse the repository at this point in the history
- Fix `static_assert` failure using `int64_t` for map keys
- Add integration tests to verify before/after behaviour.
- Update documentation

For example, this code produces `__fstr__myIntArray not defined` error:

```
struct MyClass {
    DEFINE_FSTR_ARRAY_LOCAL(myIntArray, int, 1, 2, 3, 4, 5)
};
```

The same issue applies to maps and vectors.
  • Loading branch information
mikee47 authored May 27, 2024
1 parent 591b673 commit ef3cc6b
Showing 1 changed file with 1 addition and 1 deletion.

0 comments on commit ef3cc6b

Please sign in to comment.