fix the linux build.

This commit is contained in:
Kim Kulling
2020-03-21 08:56:49 +01:00
parent b40769c395
commit 9f7d9becb2
6 changed files with 44 additions and 16 deletions

View File

@@ -727,8 +727,11 @@ struct InternGenericConvert<Maybe<T>> {
}
};
#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable : 4127)
#endif // _WIN32
template <typename T, uint64_t min_cnt, uint64_t max_cnt>
struct InternGenericConvertList {
void operator()(ListOf<T, min_cnt, max_cnt> &out, const std::shared_ptr<const EXPRESS::DataType> &inp_base, const STEP::DB &db) {
@@ -759,8 +762,6 @@ struct InternGenericConvertList {
}
};
#pragma warning(pop)
template <typename T>
struct InternGenericConvert<Lazy<T>> {
void operator()(Lazy<T> &out, const std::shared_ptr<const EXPRESS::DataType> &in_base, const STEP::DB &db) {
@@ -959,7 +960,9 @@ private:
const EXPRESS::ConversionSchema *schema;
};
#ifdef _WIN32
#pragma warning(pop)
#endif // _WIN32
} // namespace STEP