Agent-Hellboy / Agent-Hellboy/cpp-filetype

Refactor filetype::match() and others to return std::optional<const Type> instead of nullptr

Aberta
#7 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
C++
Estrelas
0
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

With std::optional, the caller is forced to check whether a value is present using methods like has_value() or by directly comparing against std::nullopt. This reduces the risk of dereferencing a null pointer.

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.