Agent-Hellboy / Agent-Hellboy/cpp-filetype
Refactor filetype::match() and others to return std::optional<const Type> instead of nullptr
Abierto
- Lenguaje dominante
- C++
- Estrellas
- 0
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.