[Bug c++/43549] TR1 type_traits are much worse than C++0x type_traits

2010-03-27 Thread pogonyshev at gmx dot net


--- Comment #2 from pogonyshev at gmx dot net  2010-03-27 14:36 ---
I'm sorry, but why?  Isn't the compiler the same?  What is the point of not
providing good type traits if you can?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43549



[Bug c++/43549] TR1 type_traits are much worse than C++0x type_traits

2010-03-27 Thread paolo dot carlini at oracle dot com


--- Comment #3 from paolo dot carlini at oracle dot com  2010-03-27 19:27 
---
Because maintaining more code is a burden, and TR1, now that C++1x is around
the corner is just history, from now on will be only *minimally* maintained.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43549



[Bug c++/43549] TR1 type_traits are much worse than C++0x type_traits

2010-03-27 Thread pogonyshev at gmx dot net


--- Comment #4 from pogonyshev at gmx dot net  2010-03-27 19:33 ---
From info:
 ...some of which have been implemented in an experimental C++0x mode in GCC.

Instead of maintaining a separate piece of code you could have one just include
another so that they are the same and be done with it.  With current situation
_default_ mode is worse than it could be.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43549



[Bug c++/43549] TR1 type_traits are much worse than C++0x type_traits

2010-03-27 Thread paolo dot carlini at oracle dot com


--- Comment #5 from paolo dot carlini at oracle dot com  2010-03-27 20:00 
---
Evidently, you never studied the actual specs: the C++1x traits are different,
in many *incompatible* ways, eg is_lvalue_reference / is_rvalue_reference vs
is_reference. Many C++1x traits don't even compile in C++98 mode. And about the
various introspection traits which you mentioned, changing those now would
break *a lot* of applications which assumed for *many* years essentially
PODness for yes, as the TR1 specs allowed. No way.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43549



[Bug c++/43549] TR1 type_traits are much worse than C++0x type_traits

2010-03-26 Thread paolo dot carlini at oracle dot com


--- Comment #1 from paolo dot carlini at oracle dot com  2010-03-27 02:26 
---
Yes, and that it's intended.


-- 

paolo dot carlini at oracle dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID
Summary|TR1 type_traits are much|TR1 type_traits are much
   |worse than C++0x type_traits|worse than C++0x type_traits


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43549