stl_tempbuf.h (temporary_buffer): Add missing typename.

* stl_tempbuf.h (temporary_buffer): Add missing typename.
	* type_traits.h: update comments.

From-SVN: r21075
This commit is contained in:
Klaus-Georg Adams 1998-07-12 03:18:39 +00:00 committed by Jason Merrill
parent 841f616caa
commit e6bc256177
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Fri Jul 10 15:20:09 1998 Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
* stl_tempbuf.h (temporary_buffer): Add missing typename.
* type_traits.h: update comments.
Sun Jun 28 00:49:42 1998 Jeffrey A Law (law@cygnus.com) Sun Jun 28 00:49:42 1998 Jeffrey A Law (law@cygnus.com)
* stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if * stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if

View File

@ -99,7 +99,7 @@ public:
allocate_buffer(); allocate_buffer();
if (len > 0) if (len > 0)
initialize_buffer(*first, initialize_buffer(*first,
__type_traits<T>::has_trivial_default_constructor()); typename __type_traits<T>::has_trivial_default_constructor());
} }
__STL_UNWIND(free(buffer); buffer = 0; len = 0); __STL_UNWIND(free(buffer); buffer = 0; len = 0);
} }

View File

@ -46,7 +46,7 @@ template <class T> void copy(T* source,T* destination,int n,__true_type);
//Copy an array of any type by using the most efficient copy mechanism //Copy an array of any type by using the most efficient copy mechanism
template <class T> inline void copy(T* source,T* destination,int n) { template <class T> inline void copy(T* source,T* destination,int n) {
copy(source,destination,n,__type_traits<T>::has_trivial_copy_constructor()); copy(source,destination,n,typename __type_traits<T>::has_trivial_copy_constructor());
} }
*/ */