Skip to content

Declare #include <cstddef> in romaji_weight.hpp - #5

Merged
tuem merged 1 commit into
tuem:masterfrom
moznion:cstddef
Jul 24, 2025
Merged

tuem merged 1 commit into
tuem:masterfrom
moznion:cstddef

Conversation

@moznion

@moznion moznion commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

To fix the compilation error by g++ 12.2.0+, like the following:

10.74 In file included from romaji_weight.cpp:20:
10.74 romaji_weight.hpp:35:69: error: ‘size_t’ has not been declared
10.74    35 |     double operator()(const value_type c, bool is_original = false, size_t total = -1, size_t position = -1) const;
10.74       |                                                                     ^~~~~~

To fix the compilation error by g++ 12.2.0+, like the following:

```
10.74 In file included from romaji_weight.cpp:20:
10.74 romaji_weight.hpp:35:69: error: ‘size_t’ has not been declared
10.74    35 |     double operator()(const value_type c, bool is_original = false, size_t total = -1, size_t position = -1) const;
10.74       |                                                                     ^~~~~~
```

Signed-off-by: moznion <moznion@mail.moznion.net>
@tuem

tuem commented Jul 24, 2025

Copy link
Copy Markdown
Owner

LGTM

@tuem
tuem merged commit 2722c6c into tuem:master Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants