class CFileStream{ template<class T> void Read(T& buf); }; // template<class T> void CFileStream::Read(T& buf) { ... }