Skip to content

Commit

Permalink
Got rid of clang warnings
Browse files Browse the repository at this point in the history
Update Cleanup the 3rd party support code #548
  • Loading branch information
eugenwintersberger committed Aug 9, 2022
1 parent 4b888d1 commit a18a004
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/h5cpp/datatype/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,28 @@ namespace datatype {
//!
template<typename T>
typename TypeTrait<typename std::remove_const<T>::type>::TypeClass create(const T &v = T{}) {
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundefined-func-template"
#endif
return TypeTrait<typename std::remove_const<T>::type>::create(v);
#ifdef __clang__
#pragma clang diagnostic pop
#endif
}
//!
//! \brief factory function for getting reference of data types
//!
template<typename T>
const Datatype & get(const T &v = T{}) {
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundefined-func-template"
#endif
return TypeTrait<typename std::remove_const<T>::type>::get(v);
#ifdef __clang__
#pragma clang diagnostic pop
#endif
}

//!
Expand Down

0 comments on commit a18a004

Please sign in to comment.