Permission to change the cpp_type_traits.h file.
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Feb 17 11:47:00 GMT 2004
Dhruv Matani <dhruvbird@gmx.net> writes:
| I need to know if I could change the is_pod part of the above mentioned
| file, because I intend using that class. Right now, it is wrongly
| detecting function pointers as classes (non-PODs). I have attached a
| file that shows the output for int, A (a struct), and a function
| pointer. The change would be the commented part.
The comment above that class is:
// For the immediate use, the following is a good approximation
and the definition is:
_M_type = __is_fundamental<_Tp>::_M_type
It was not meant to give the right answer of the all time.
Did you find any use of it in the library that is suboptimal?
-- Gaby
More information about the Libstdc++
mailing list