This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH: DR150/PR9737


Hi Mark,

interesting issue...

The v3 changes are fine with me, only...

>Index: libstdc++-v3/testsuite/testsuite_tr1.h
>===================================================================
>--- libstdc++-v3/testsuite/testsuite_tr1.h	(revision 110465)
>+++ libstdc++-v3/testsuite/testsuite_tr1.h	(working copy)
>@@ -64,6 +64,18 @@ namespace __gnu_test
>       return ret;
>     }
> 
>+  template<template<typename, unsigned> class Property,
>+           typename Type,
>+	   unsigned Uint>
>+    bool
>+    test_property(typename Property<Type, Uint>::value_type value)
>+    {
>+      bool ret = true;
>+      ret &= Property<Type, Uint>::value == value;
>+      ret &= Property<Type, Uint>::type::value == value;
>+      return ret;
>+    }
>  
>
... can you add a one-line comment before the new test_property overload
stating that is used for testing tr1/type_traits/extent? Just as a
reminder that maybe those testing facilities can be cleaned up a bit...

Thanks a lot,
Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]