Topic: Type definitions allowed in typeid expressions??
Author: dan@cafws4.eng.uci.edu (Dan Harkless)
Date: 1996/11/05 Raw View
The Draft Standard explicitly says that you can't define a type in a
sizeof expression or inside a cast. However, it says nothing about defining
types within a typeid expression. Does this mean it's allowed, or is there
something somewhere else making it illegal and the sections for sizeof and the
casts are just being redundant?
If it is legal, does the type get defined within the scope the typeid
expression appears in, or is it just alive for the purposes of making a
type_info object?
- Dan Harkless
Unitech Research, Inc.
dan@unitech.com
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]