Permission to change the cpp_type_traits.h file.
Dhruv Matani
dhruvbird@gmx.net
Tue Feb 17 12:47:00 GMT 2004
On Tue, 2004-02-17 at 17:08, Gabriel Dos Reis wrote:
> 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?
No, but I wanted to use it to detect whethere a comparison template
paremeter _Compare is an aggregate type or a POD (normal function) in
which case we can not use EBO for the _Compare parameter.
I'll send the patch in a few minutes.
> -- Gaby
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
More information about the Libstdc++
mailing list