[BlenderDNA.h] Declare explicit specializations
It is an ODR violation to use a template specialization for which an explicit specialization is defined somewhere whose declaration is not visible at the point of use. Found via clang's -Wundefined-func-template warning.pull/4816/head
parent
6f6f77232e
commit
7d06d798af
|
@ -431,6 +431,17 @@ inline bool Structure ::ResolvePointer<std::shared_ptr, ElemBase>(std::shared_pt
|
|||
const Field &f,
|
||||
bool) const;
|
||||
|
||||
template <> bool Structure :: ResolvePointer<std::shared_ptr,ElemBase>(
|
||||
std::shared_ptr<ElemBase>& out, const Pointer & ptrval,
|
||||
const FileDatabase& db, const Field&, bool) const;
|
||||
template <> inline void Structure :: Convert<int> (int& dest,const FileDatabase& db) const;
|
||||
template<> inline void Structure :: Convert<short> (short& dest,const FileDatabase& db) const;
|
||||
template <> inline void Structure :: Convert<char> (char& dest,const FileDatabase& db) const;
|
||||
template <> inline void Structure::Convert<unsigned char>(unsigned char& dest, const FileDatabase& db) const;
|
||||
template <> inline void Structure :: Convert<float> (float& dest,const FileDatabase& db) const;
|
||||
template <> inline void Structure :: Convert<double> (double& dest,const FileDatabase& db) const;
|
||||
template <> inline void Structure :: Convert<Pointer> (Pointer& dest,const FileDatabase& db) const;
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
/** Represents the full data structure information for a single BLEND file.
|
||||
* This data is extracted from the DNA1 chunk in the file.
|
||||
|
|
Loading…
Reference in New Issue