[complement-svn] SF.net SVN: complement: [1689] trunk/complement/explore
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-08-17 12:42:09
|
Revision: 1689 http://complement.svn.sourceforge.net/complement/?rev=1689&view=rev Author: complement Date: 2007-08-17 05:42:07 -0700 (Fri, 17 Aug 2007) Log Message: ----------- made code acceptable for gcc 3.3 [remove inline initialization of statics in template] Modified Paths: -------------- trunk/complement/explore/include/misc/type_traits.h trunk/complement/explore/lib/misc/ChangeLog Modified: trunk/complement/explore/include/misc/type_traits.h =================================================================== --- trunk/complement/explore/include/misc/type_traits.h 2007-08-17 12:26:22 UTC (rev 1688) +++ trunk/complement/explore/include/misc/type_traits.h 2007-08-17 12:42:07 UTC (rev 1689) @@ -49,9 +49,12 @@ static __t2 __test(...); public: - static const bool __value = sizeof(__test<_Tp>(0)) == 1; + static const bool __value; // = sizeof(__test<_Tp>(0)) == 1; }; +template <class _Tp> +const bool __instance<_Tp>::__value = sizeof(__instance<_Tp>::__test<_Tp>(0)) == 1; + template <class T> struct __uoc_aux : // union or class public __select_types @@ -64,10 +67,13 @@ static __t2 __test(...); public: - static const bool __value = sizeof(__test<T>(0)) == 1; + static const bool __value; // = sizeof(__test<T>(0)) == 1; }; template <class T> +const bool __uoc_aux<T>::__value = sizeof(__uoc_aux<T>::__test<T>(0)) == 1; + +template <class T> class __empty { }; Modified: trunk/complement/explore/lib/misc/ChangeLog =================================================================== --- trunk/complement/explore/lib/misc/ChangeLog 2007-08-17 12:26:22 UTC (rev 1688) +++ trunk/complement/explore/lib/misc/ChangeLog 2007-08-17 12:42:07 UTC (rev 1689) @@ -1,3 +1,8 @@ +2007-08-17 Petr Ovtchenkov <pt...@is...> + + * type_traits.h: made code acceptable for gcc 3.3 [remove + inline initialization of statics in template]. + 2007-08-03 Petr Ovtchenkov <pt...@is...> * type_traits.h: select appropriate TR1 type_traits implementation This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |