Topic: Alternate hiding syntax for non-function members (n3151 and n3163)
Author: Mark Zeren <mark@zeren.com>
Date: Sat, 6 Nov 2010 09:25:37 CST Raw View
In N3151 Keywords for override control :
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3151.html
I don't see examples of the hiding annotation for non-function
members. Would these still appear at the end of the declaration? For
example:
struct B { typedef B self; };
struct D strictdecl : B {
int self hidedecl; // ok: hides B::self
typedef D self hidedecl; // ok: hides B::self
enum self {} hidedecl; // ok: hides B::self
struct self {} hidedecl; // ok: hides B::self
};
In N3163 Override Control Using Contextual Keywords
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3163.pdf
I don't see an alternate syntax for non-function members. Is the
implication that attributes be used for non-function members?
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]