perf(az_to_species): marked noexcept

includes a version bump from v1.8.1 -> v1.8.2
This commit is contained in:
2025-10-09 07:04:35 -04:00
parent 325570f257
commit 1fd329a072
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
# 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_project_arguments('-fvisibility=default', language: 'cpp')

View File

@@ -7138,7 +7138,7 @@ namespace fourdst::atomic {
};
// 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))) {
return std::unexpected(SpeciesErrorType::ELEMENT_SYMBOL_NOT_FOUND);
}