# std.hash_map: add \`const\` attribute to StringIndexContext.bytes and \.\.\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/45d7dfa8333880ffa0a318723d22a0072bd32b3f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 45d7dfa8333880ffa0a318723d22a0072bd32b3f

Requested commit: 45d7dfa8333880ffa0a318723d22a0072bd32b3f

Commit: 45d7dfa8333880ffa0a318723d22a0072bd32b3f

Tree: fd00c3dae6731d08dbc01608746360b580511ba2

Author: Constantin Bilz

Committer: Veikka Tuominen

## Message

```
std.hash_map: add `const` attribute to StringIndexContext.bytes and ...

StringIndexAdapter.bytes

Without this change, constructing a Context/Adapter for a `const` string
table requires a `@constCast`.

```

## Parents

- [1631dc923d48d8c586e57f793adcdfb97760ceb3](https://git.cafe/gitcafe/zig/commit/1631dc923d48d8c586e57f793adcdfb97760ceb3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/45d7dfa8333880ffa0a318723d22a0072bd32b3f?format=markdown)
