perf(az_to_species): marked noexcept
includes a version bump from v1.8.1 -> v1.8.2
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
# *********************************************************************** #
|
# *********************************************************************** #
|
||||||
project('libcomposition', 'cpp', version: 'v1.8.1', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0')
|
project('libcomposition', 'cpp', version: 'v1.8.2', default_options: ['cpp_std=c++23'], meson_version: '>=1.5.0')
|
||||||
|
|
||||||
# Add default visibility for all C++ targets
|
# Add default visibility for all C++ targets
|
||||||
add_project_arguments('-fvisibility=default', language: 'cpp')
|
add_project_arguments('-fvisibility=default', language: 'cpp')
|
||||||
|
|||||||
@@ -7138,7 +7138,7 @@ namespace fourdst::atomic {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Function to look up a species by its atomic number (Z) and mass number (A).
|
// Function to look up a species by its atomic number (Z) and mass number (A).
|
||||||
inline std::expected<Species, SpeciesErrorType> az_to_species(const int a, const int z) {
|
inline std::expected<Species, SpeciesErrorType> az_to_species(const int a, const int z) noexcept {
|
||||||
if (!element_symbol_map.contains(static_cast<uint8_t>(z))) {
|
if (!element_symbol_map.contains(static_cast<uint8_t>(z))) {
|
||||||
return std::unexpected(SpeciesErrorType::ELEMENT_SYMBOL_NOT_FOUND);
|
return std::unexpected(SpeciesErrorType::ELEMENT_SYMBOL_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user