Commit e6bc2561 by Klaus-Georg Adams Committed by Jason Merrill

stl_tempbuf.h (temporary_buffer): Add missing typename.

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

From-SVN: r21075
parent 841f616c
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
......
...@@ -99,7 +99,7 @@ public: ...@@ -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);
} }
......
...@@ -46,7 +46,7 @@ template <class T> void copy(T* source,T* destination,int n,__true_type); ...@@ -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());
} }
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment