# std.meta.hasUniqueRepresentation: Handle optional pointers correctly \(\#20366\) · gitcafe/zig

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

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

Visibility: public

Requested revision: f1b6f1aeb38452fce2c1185326556566cacee2ca

Requested commit: f1b6f1aeb38452fce2c1185326556566cacee2ca

Commit: f1b6f1aeb38452fce2c1185326556566cacee2ca

Tree: 0e1414b6a39236c84bfd3532c65c6adfa7dbf324

Author: Sean

Committer: GitHub

## Message

```
std.meta.hasUniqueRepresentation: Handle optional pointers correctly (#20366)

std.meta.hasUniqueRepresentation should now return true for non-slice optional pointers. Additional checks were added to the test to reflect this.
```

## Parents

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

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