Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Daniel Krügler <daniel.kruegler@googlemail.com> |
|---|---|
| Newsgroups | comp.std.c++ |
| Subject | Re: C++11 generalized attributes for namespaces |
| Date | 2012-04-11 23:12 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <jm3ds4$mq8$1@dont-email.me> (permalink) |
| References | <YtydnW57lakLGxzSnZ2dnUVZ_gednZ2d@supernews.com> |
On 2012-04-08 17:14, Boris Kolpackov wrote:
>
> I am looking into C++11 generalized attributes and trying to understand
> if they apply to namespaces, including the global namespace/translation
> unit.
>
> According to Clause 7 [dcl.dcl] paragraph 1 (the attribute-declaration
> production), we can have something like this:
>
> [[attr]];
>
> namespace n
> {
> [[attr]];
> }
>
> However, I can't seem to find any text that says what such an attribute
> appertains to. Is it to the innermost namespace? Or, may be, always to
> the translation unit?
[..]
> I would appreciate it if someone can clarify this.
The semantics should be described by the general statement in 7 p1:
"Except where otherwise specified, the meaning of an
attribute-declaration is implementation-defined."
HTH & Greetings from Bremen,
Daniel Krügler
--
[ comp.std.c++ is moderated. To submit articles, try posting with your ]
[ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Find similar
C++11 generalized attributes for namespaces Boris Kolpackov<boris@codesynthesis.com> - 2012-04-08 08:14 -0700 Re: C++11 generalized attributes for namespaces Daniel Krügler <daniel.kruegler@googlemail.com> - 2012-04-11 23:12 -0700
csiph-web