Disable compile-time checks for dynamic width/precision test for LCC and compiler without std::is_constant_evaluated()

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov
2022-08-25 15:57:31 +05:00
committed by Victor Zverovich
parent 797d82b21a
commit a07411c2b9
2 changed files with 5 additions and 0 deletions

View File

@@ -755,8 +755,11 @@ class compile_parse_context
using base::check_arg_id;
FMT_CONSTEXPR void check_dynamic_spec(int arg_id) {
detail::ignore_unused(arg_id);
#if !defined(__LCC__)
if (arg_id < num_args_ && types_ && !is_integral_type(types_[arg_id]))
this->on_error("width/precision is not integer");
#endif
}
};
FMT_END_DETAIL_NAMESPACE