From e6bc2561772ed809bd5cba6ff173dbeda98a64b3 Mon Sep 17 00:00:00 2001 From: Klaus-Georg Adams Date: Sun, 12 Jul 1998 03:18:39 +0000 Subject: [PATCH] stl_tempbuf.h (temporary_buffer): Add missing typename. * stl_tempbuf.h (temporary_buffer): Add missing typename. * type_traits.h: update comments. From-SVN: r21075 --- libstdc++/stl/ChangeLog | 5 +++++ libstdc++/stl/stl_tempbuf.h | 2 +- libstdc++/stl/type_traits.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libstdc++/stl/ChangeLog b/libstdc++/stl/ChangeLog index 82cdfe39804..c94d6a9d71b 100644 --- a/libstdc++/stl/ChangeLog +++ b/libstdc++/stl/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 10 15:20:09 1998 Klaus-Georg Adams + + * 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) * stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if diff --git a/libstdc++/stl/stl_tempbuf.h b/libstdc++/stl/stl_tempbuf.h index 5c971e6208a..9dbc238eaee 100644 --- a/libstdc++/stl/stl_tempbuf.h +++ b/libstdc++/stl/stl_tempbuf.h @@ -99,7 +99,7 @@ public: allocate_buffer(); if (len > 0) initialize_buffer(*first, - __type_traits::has_trivial_default_constructor()); + typename __type_traits::has_trivial_default_constructor()); } __STL_UNWIND(free(buffer); buffer = 0; len = 0); } diff --git a/libstdc++/stl/type_traits.h b/libstdc++/stl/type_traits.h index a7b977cc06b..40c633913e1 100644 --- a/libstdc++/stl/type_traits.h +++ b/libstdc++/stl/type_traits.h @@ -46,7 +46,7 @@ template void copy(T* source,T* destination,int n,__true_type); //Copy an array of any type by using the most efficient copy mechanism template inline void copy(T* source,T* destination,int n) { - copy(source,destination,n,__type_traits::has_trivial_copy_constructor()); + copy(source,destination,n,typename __type_traits::has_trivial_copy_constructor()); } */