From fbbd74e3c94631ca0a3ca7a8bec6d461c7b44df6 Mon Sep 17 00:00:00 2001 From: Fabian Peller <fabian.peller-konrad@kit.edu> Date: Mon, 5 Jun 2023 15:35:28 +0200 Subject: [PATCH] remove c++20 features --- .../aron/codegeneration/typereader/xml/Factory.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/RobotAPI/libraries/aron/codegeneration/typereader/xml/Factory.cpp b/source/RobotAPI/libraries/aron/codegeneration/typereader/xml/Factory.cpp index 62ef4d799..da43a7631 100644 --- a/source/RobotAPI/libraries/aron/codegeneration/typereader/xml/Factory.cpp +++ b/source/RobotAPI/libraries/aron/codegeneration/typereader/xml/Factory.cpp @@ -485,7 +485,7 @@ namespace armarx::aron::typereader::xml std::string type = util::GetAttribute(node, constantes::TYPE_ATTRIBUTE_NAME); ARMARX_CHECK_AND_THROW( - StringSlug2MatrixType.contains(simox::alg::to_lower(type)), + StringSlug2MatrixType.count(simox::alg::to_lower(type)), error::ValueNotValidException(__PRETTY_FUNCTION__, "Could not resolve type", type)); // set elem type @@ -532,7 +532,7 @@ namespace armarx::aron::typereader::xml // set elem type std::string type = util::GetAttribute(node, constantes::TYPE_ATTRIBUTE_NAME); ARMARX_CHECK_AND_THROW( - StringSlug2QuaternionType.contains(simox::alg::to_lower(type)), + StringSlug2QuaternionType.count(simox::alg::to_lower(type)), error::ValueNotValidException(__PRETTY_FUNCTION__, "Could not resolve type", type)); o->setElementType(StringSlug2QuaternionType.at(simox::alg::to_lower(type))); @@ -579,7 +579,7 @@ namespace armarx::aron::typereader::xml std::string type = util::GetAttribute(node, constantes::TYPE_ATTRIBUTE_NAME); ARMARX_CHECK_AND_THROW( - String2PixelType.contains(simox::alg::to_lower(type)), + String2PixelType.count(simox::alg::to_lower(type)), error::ValueNotValidException(__PRETTY_FUNCTION__, "Could not resolve type", type)); o->setPixelType(String2PixelType.at(simox::alg::to_lower(type))); @@ -630,7 +630,7 @@ namespace armarx::aron::typereader::xml std::string type = util::GetAttribute(node, constantes::TYPE_ATTRIBUTE_NAME); ARMARX_CHECK_AND_THROW( - StringSlug2VoxelType.contains(simox::alg::to_lower(type)), + StringSlug2VoxelType.count(simox::alg::to_lower(type)), error::ValueNotValidException(__PRETTY_FUNCTION__, "Could not resolve type", type)); o->setVoxelType(StringSlug2VoxelType.at(simox::alg::to_lower(type))); @@ -714,7 +714,7 @@ namespace armarx::aron::typereader::xml // check default value if (defaultValue != type::aron_enum::default_value::DEFAULT and - not acceptedValues.contains(defaultValue)) + not acceptedValues.count(defaultValue)) { throw error::ValueNotValidException(__PRETTY_FUNCTION__, "An int enum has a non existing default value set", -- GitLab