Skip to content

Commit 685ea1b

Browse files
committed
Get rid of using enum in DomainPACVerifierCLIAdapter
Use fully-qualified enum names instead of `using enum` in DomainPACVerfierAdapter::ProcessPACTypeOptions, becuase we use ancient GCC-10 in CI, which does not dupport `using enum`.
1 parent d4b7aa0 commit 685ea1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/algorithms/pac/pac_verifier/domain_pac_verifier_cli_adapter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ void DomainPACVerifierCLIAdapter::RegisterOptions() {
5555
}
5656

5757
void DomainPACVerifierCLIAdapter::ProcessPACTypeOptions() {
58-
using enum pac::model::DomainType::_enumerated;
58+
using namespace pac::model;
5959

6060
switch (domain_type_) {
61-
case ball:
61+
case DomainType::ball:
6262
domain_ = std::make_shared<Ball>(std::move(center_str_), radius_,
6363
std::move(leveling_coeffs_));
6464
break;
65-
case parallelepiped:
65+
case DomainType::parallelepiped:
6666
domain_ = std::make_shared<Parallelepiped>(std::move(first_str_), std::move(last_str_),
6767
std::move(leveling_coeffs_));
6868
break;
69-
case custom_domain:
69+
case DomainType::custom_domain:
7070
__builtin_unreachable();
7171
break;
7272
}

0 commit comments

Comments
 (0)