acts-project / acts-project/acts

`const MutableProxy` might behave unexpectedly

Aberta
#4,430 9 comentários 0 reações 0 responsáveis Ver no GitHub
Stale
Linguagem predominante
C++
Estrelas
131
Forks
276
Merge médio
3d 13h
PRs com merge (30d)
112

Descrição

Currently, `const MutableProxy` does not provide write access to the underlying object and forces the user to use `MutableProxy`. But this widens the contract and allows the callee to modify the proxy to point somewhere else.

To me this seems unexpected as this is contrary to how `const iterator_t` and `type_t * const` behave. They provide write access but the user is not able to redirect the iterator or pointer to a different object.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.