This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c++/26205] pointer to member template parameter can't be null



------- Comment #3 from jeffp at doomsday dot org  2006-02-15 19:55 -------
The casting work-around doesn't compile under GCC.  It requires that the
template parameter be a constant-expression (which is true), which results in
the following error:

error: a casts to a type other than an integral or enumeration type cannot
appear in a constant-expression

I have yet to be able to figure out a work-around.  MSVC allows the cast, but
works with or without it.


-- 


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


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